package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Jan 13, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
ErrInvalidToken = errors.New("invalid token")
ErrTokenExpired = errors.New("token expired")
ErrIncorrectIssuedAt = errors.New("token issued at different time")
ErrTokenIssuedBefore = errors.New("token issued before")
ErrIncorrectIssuer = errors.New("incorrect issuer")
)
IssueAccessToken issues signed string of access token.
IssueRefreshToken issues signed string of refresh token.
ValidateAccessToken parses access token.
type Claims struct {
Type string `json:"type"`
jwt.RegisteredClaims
}
Claims is a custom claims for jwt token.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.