Documentation ¶
Index ¶
- func DecodeToken(secret string, token string, skipValidation bool, claim jwt.Claims) error
- func FromCtx(ctx context.Context) jwt.MapClaims
- func GenerateToken(secret string, claims jwt.Claims) (string, error)
- func InjectCtx(ctx context.Context, claim jwt.MapClaims) context.Context
- func JwtHandler(secret string) func(next http.Handler) http.Handler
- type ContextKey
- type JwtHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeToken ¶
func GenerateToken ¶
GenerateToken generate tokens used for auth
Types ¶
Click to show internal directories.
Click to hide internal directories.