Documentation ¶
Index ¶
Constants ¶
View Source
const ( SystemRole = "SYSTEM" AdminRole = "ADMIN" AnonymousRole = "ANONYMOUS" )
Common roles
Variables ¶
View Source
var ( ErrInvalidTokenContent = errors.New("invalid token content") ErrInvalidToken = errors.New("token is invalid") ErrExpiredToken = errors.New("token has expired") )
Common errors.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
Credentials credentials to issue and verify JWT tokens.
type Issuer ¶
Issuer interface for issuing auth tokens
func NewIssuer ¶
func NewIssuer(creds Credentials) Issuer
NewIssuer creates a new Issuer using the default implementation.
Click to show internal directories.
Click to hide internal directories.