Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidToken = errors.New("authentication/token: invalid token")
)
Functions ¶
Types ¶
type Token ¶
type Token struct { // AccessToken is a token allowing to access the protected resource. // // It can be any kind of bearer token, i.e., a JWT, an opaque token, etc. AccessToken string // RefreshToken is a typically used to refresh the access token. // // If can be an empty string when there is no need to refresh a token. RefreshToken string }
Token cares information about an access token.
Click to show internal directories.
Click to hide internal directories.