Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateAccessToken ¶
same as the refresh token except we dont use the custom key and we add an expiration time of 1 hour to this we also use a different private key of course
Types ¶
type AccessTokenCustomClaims ¶
type AccessTokenCustomClaims struct { UserID string KeyType string jwt.StandardClaims }
type RefreshTokenCustomClaims ¶
type RefreshTokenCustomClaims struct { UserID string CustomKey string KeyType string jwt.StandardClaims }
Click to show internal directories.
Click to hide internal directories.