Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtClaim ¶
type JwtClaim struct { jwt.StandardClaims Email string Name string ClientUID string }
JwtClaim adds email as a claim to the token
type JwtWrapper ¶
JwtWrapper wraps the signing key and the issuer
func (*JwtWrapper) GenerateToken ¶
func (j *JwtWrapper) GenerateToken(uid, name, email string) (string, error)
GenerateToken generates a jwt token
func (*JwtWrapper) ValidateToken ¶
func (j *JwtWrapper) ValidateToken(signedToken string) (*JwtClaim, error)
ValidateToken validates the jwt token
Click to show internal directories.
Click to hide internal directories.