Documentation
¶
Overview ¶
Package signedtoken signs and verifies Credimi's own tokens: base64url(json).base64url(hmac), with a key derived from the users collection's auth token secret and a label naming the token kind, so rotating that secret revokes every token and a token of one kind is never accepted as another.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsigned = errors.New("token not signed by Credimi")
ErrUnsigned rejects a token Credimi did not sign with the expected key.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.