package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: May 23, 2023
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Claims struct {
Field map[string]interface{} `json:"field"`
jwt.StandardClaims
}
type Token struct {
RefreshToken string `json:"refresh_token" bson:"refresh_token"`
AccessToken string `json:"access_token" bson:"access_token"`
ExpiresAt int64 `json:"expires_at" bson:"expiresAt"`
}
type TokenStore interface {
Store(tokenID, refreshToken, accessToken string) error
Retrieve(refreshToken string) (accessToken string)
Destroy(refreshToken string) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.