Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUsername ¶
GetUsername extracts the username claim value from the JWT
Types ¶
type Token ¶
type Token struct { Logger logging.Logger AccessToken string `json:"access_token,omitempty" doc:"Bearer access token."` RefreshToken string `json:"refresh_token,omitempty" doc:"Offline or refresh token."` }
Token contains the current access and refresh tokens from the Authorization server
func (*Token) NeedsRefresh ¶
NeedsRefresh checks if the access token is missing, expired or nearing expiry and should be refreshed
Click to show internal directories.
Click to hide internal directories.