Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthableDecoder ¶
type AuthableDecoder interface {
Decode(token string) (*CustomClaims, error)
}
type CustomClaims ¶
type CustomClaims struct { User *JWTUser jwt.StandardClaims }
CustomClaims is our custom metadata, which will be hashed and sent as the second segment in our JWT
type TokenDecoder ¶
type TokenDecoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func NewDecoder(key string) *TokenDecoder
func (*TokenDecoder) Decode ¶
func (d *TokenDecoder) Decode(tokenString string) (*CustomClaims, error)
Decode a token string into a token object
Click to show internal directories.
Click to hide internal directories.