Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenStore ¶
type TokenStore struct {
// contains filtered or unexported fields
}
TokenStore implements a stateless TokenStore using JWTs
func New ¶
New returns a new JWT TokenStore. key should be 256 bits. If iss and aud are set, they will be put in the token and verified by Authenticate. dur is used to set the iat, nbf, and exp claims
func (*TokenStore) Authenticate ¶
func (t *TokenStore) Authenticate(token string) (identifier string, err error)
Authenticate authenticates the token and returns the associated identifier.
Click to show internal directories.
Click to hide internal directories.