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(NewService), )
Module for fx.
Functions ¶
This section is empty.
Types ¶
type JWT ¶ added in v1.10.3
type JWT struct {
// contains filtered or unexported fields
}
JWT service.
type Paseto ¶ added in v1.10.3
type Paseto struct {
// contains filtered or unexported fields
}
Paseto service.
func NewPaseto ¶ added in v1.10.3
func NewPaseto(publicKey ed25519.PublicKey, privateKey ed25519.PrivateKey) *Paseto
NewPaseto service.
Click to show internal directories.
Click to hide internal directories.