Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTokenExpired is returned if the token is expired ErrTokenExpired = errors.New("jwt: token is expired") )
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { }
AccessToken contains the fields from the JWT
func ParseAccessToken ¶
func ParseAccessToken(ctx context.Context, accessTokenStr string) (AccessToken, error)
ParseAccessToken and validate it
func (AccessToken) Valid ¶
func (token AccessToken) Valid() error
Valid returns non-nil error if any of the fields are invalid or the token is expired
Click to show internal directories.
Click to hide internal directories.