package
Version:
v0.0.0-...-1b39580
Opens a new window with list of versions in this module.
Published: Oct 5, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func DecodeToken(token, publicKey string) (interface{}, error)
type JWTConfig struct {
Access Token `mapstructure:"accessToken"`
Refresh Token `mapstructure:"refreshToken"`
}
type Token struct {
PrivateKey string `mapstructure:"privateKey"`
PublicKey string `mapstructure:"publicKey"`
ExpiresIn time.Duration `mapstructure:"expiresIn"`
MaxAge int `mapstructure:"maxAge"`
}
type TokenPair struct {
AccessToken string `mapstructure:"accessToken"`
RefreshToken string `mapstructure:"refreshToken"`
}
type UserClaims struct {
ID int64
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.