Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidKind for generation of tokens. ErrInvalidKind = errors.New("invalid kind") // ErrInvalidAlgorithm for service. ErrInvalidAlgorithm = errors.New("invalid algorithm") // ErrInvalidIssuer for service. ErrInvalidIssuer = errors.New("invalid issuer") // ErrInvalidAudience for service. ErrInvalidAudience = errors.New("invalid audience") // ErrInvalidTime for service. ErrInvalidTime = errors.New("invalid time") )
View Source
var Module = fx.Options( fx.Provide(NewJWT), fx.Provide(NewKID), fx.Provide(NewPaseto), fx.Provide(NewToken), )
Module for fx.
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
JWT token.
type Paseto ¶
type Paseto struct {
// contains filtered or unexported fields
}
Paseto token.
Click to show internal directories.
Click to hide internal directories.