Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClaims ¶
func GetClaims[T Validateable](rawToken string, opts TokenOptions, skipVerify bool) (claims T, err error)
Validates and returns the token claims
func New ¶
func New[T Validateable](claims T, opts TokenOptions) (rawToken string, err error)
Generates a new token token with an optional signing key suffix.
Types ¶
type TokenOptions ¶
type Validateable ¶
type Validateable interface {
Validate() error
}
Click to show internal directories.
Click to hide internal directories.