Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomClaims ¶
type CustomClaims struct { ID string `json:"id"` Email string `json:"email"` token.StandardClaims }
CustomClaims custom token object
func Decode ¶
func Decode(t interface{}) (*CustomClaims, error)
Decode takes the token string and returnes the CustomClaims instance
func (*CustomClaims) Valid ¶
func (c *CustomClaims) Valid() error
Valid custom validation method for CustomClaims token object
Click to show internal directories.
Click to hide internal directories.