Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWTToken ¶
func GenerateJWTToken(user *relational.User, privateKey *rsa.PrivateKey) (*string, error)
func GeneratePasswordResetToken ¶ added in v0.6.4
func GeneratePasswordResetToken(email string, privateKey *rsa.PrivateKey) (*string, error)
Types ¶
type JWK ¶
type PasswordResetClaims ¶ added in v0.6.4
type PasswordResetClaims struct {
jwt.RegisteredClaims
Email string `json:"email"`
}
func VerifyPasswordResetToken ¶ added in v0.6.4
func VerifyPasswordResetToken(tokenString string, publicKey *rsa.PublicKey) (*PasswordResetClaims, error)
type UserClaims ¶
type UserClaims struct {
jwt.RegisteredClaims
GivenName string `json:"given_name"`
FamilyName string `json:"family_name"`
}
func VerifyJWTToken ¶
func VerifyJWTToken(tokenString string, publicKey *rsa.PublicKey) (*UserClaims, error)
Click to show internal directories.
Click to hide internal directories.