Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidKeySize error = fmt.Errorf("invalid key size, must be at least %d characters", minSecretKeySize)
Functions ¶
This section is empty.
Types ¶
type JWTMaker ¶
type JWTMaker struct { jwt.RegisteredClaims // contains filtered or unexported fields }
func (*JWTMaker) CreateToken ¶
type PasetoMaker ¶
type PasetoMaker struct {
// contains filtered or unexported fields
}
func NewPasetoMaker ¶
func NewPasetoMaker(symmetricKey string) (*PasetoMaker, error)
func (*PasetoMaker) CreateToken ¶
func (*PasetoMaker) VerifyToken ¶
func (p *PasetoMaker) VerifyToken(token string) (*Payload, error)
Click to show internal directories.
Click to hide internal directories.