Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserIdContextKey contextKey = "userId" UserEmailContextKey contextKey = "userEmail" UserRolesContextKey contextKey = "userRole" )
Variables ¶
This section is empty.
Functions ¶
func CreateJwt ¶
func CreateJwt(privateKey *rsa.PrivateKey, expirationTime time.Time, claims JwtCustomClaims, jti *string) (string, error)
Types ¶
type JwtClaims ¶
type JwtClaims struct { *JwtCustomClaims jwt.RegisteredClaims }
type JwtCustomClaims ¶
func GetClaimsFromAccountData ¶
func GetClaimsFromAccountData(accounId string, accountEmail string, accountRole int) JwtCustomClaims
func GetClaimsFromJwtClaims ¶
func GetClaimsFromJwtClaims(claims JwtClaims) JwtCustomClaims
Click to show internal directories.
Click to hide internal directories.