05e74d56db
Implement `Token.Sign` method which calculates signature of the data of the `Token` and writes the signature into it. Implement `Token.VerifySignature` which checks if `Token` signature is presented and valid. These methods allow to abstract the external context from the details of what kind of data is being signed and how the signature is stored. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru> |
||
---|---|---|
.. | ||
test | ||
session.go | ||
session_test.go |