Documentation ¶
Index ¶
- Constants
- func CheckRefreshToken(token string) (bool, error)
- func Delete(token string) error
- func GetValueByKey(token string) (string, error)
- func NewAccessToken(timeDuration int64) (string, error)
- func NewRecoveryLink(value string) (string, error)
- func NewRefreshToken(timeDuration time.Duration) (string, error)
- func VerifyToken(tokenString string) (*jwt.Token, error)
- type Session
Constants ¶
View Source
const ( PRIVATE_KEY = "cert/private_key.pem" PUBLIC_KEY = "cert/public_key.pub" )
Variables ¶
This section is empty.
Functions ¶
func CheckRefreshToken ¶
func GetValueByKey ¶
func NewAccessToken ¶
func NewRecoveryLink ¶
func VerifyToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.