Documentation ¶
Index ¶
Constants ¶
View Source
const (
ClaimsCtx = contextKey("claims")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Production ¶
func NewProduction ¶
func NewProduction(secret string) *Production
func (*Production) GenerateToken ¶
func (p *Production) GenerateToken(newClaims *claims.Claims) (string, error)
func (*Production) ParseToken ¶
func (p *Production) ParseToken(token string) (*claims.Claims, error)
Click to show internal directories.
Click to hide internal directories.