Documentation ¶
Index ¶
- func GenerateAccessToken(accessKey string, customClaims map[string]interface{}, lifeSpan int) (string, error)
- func GenerateRefreshToken(refreshKey string, customClaims map[string]interface{}, lifeSpan int) (string, error)
- func ValidateAccessTokenWithData(token string, key string) (map[string]interface{}, error)
- func ValidateRefreshToken(token string, key string) (bool, error)
- type JWTData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAccessToken ¶
func GenerateRefreshToken ¶
func ValidateAccessTokenWithData ¶
* Validate given token using given key
token: Access Token you want to validate key: Secret access key *
Types ¶
Click to show internal directories.
Click to hide internal directories.