Documentation ¶
Overview ¶
Package jwt provides the needed functions to generate tokens for users
Index ¶
- func GenerateDefaultUserToken(user models.User) (*models.UserToken, error)
- func GenerateRefreshToken(keyId string, user models.User) (string, error)
- func GenerateUserToken(keyId string, user models.User) (*models.UserToken, error)
- func GenerateUserTokenForAudiences(keyId string, user models.User, audiences ...string) (*models.UserToken, error)
- func GenerateUserTokenForKeyAndAudiences(keyId string, user models.User, audiences ...string) (*models.UserToken, error)
- func GenerateVerifyEmailToken(keyId string, user models.User) string
- func GetTokenClaim(token string, claim string) string
- func ValidateRefreshToken(token string, user string) (*models.UserToken, error)
- func ValidateUserToken(token string, scope string, audiences ...string) (*models.UserToken, error)
- type RawCertificateHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDefaultUserToken ¶
GenerateDefaultUserToken generates a jwt user token with the default audiences in the context It returns a user token object and an error if it exists
func GenerateRefreshToken ¶
GenerateRefreshToken generates a refresh token for the user with a
func GenerateUserToken ¶
GenerateUserToken
func GetTokenClaim ¶
func ValidateRefreshToken ¶
Types ¶
type RawCertificateHeader ¶
Click to show internal directories.
Click to hide internal directories.