Documentation ¶
Index ¶
Constants ¶
View Source
const DateTimeFormatNoSeparator = "20060102150405"
View Source
const GuestUserName = "guest"
Variables ¶
View Source
var ErrNotFoundAuthorizationHeader = errors.New("not found Authorization header")
View Source
var ErrNotFoundBearerToken = errors.New("not found bearer token")
View Source
var ErrNotFoundClaims = errors.New("not found claims in token")
View Source
var ErrNotFoundName = errors.New("not found name in token")
View Source
var ErrTokenExpired = errors.New("token is expired")
View Source
var ErrTokenInvalid = errors.New("token is invalid")
View Source
var ErrTokenInvalidNotExistingUserName = errors.New("the user name contained in token doesn't exist")
View Source
var ErrUnexpectedSigningMethod = errors.New("unexpected signing method")
View Source
var NowFunc = time.Now
Functions ¶
func GenerateToken ¶
func VerifyToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.