Documentation ¶
Index ¶
- func CreateToken(sub string, userInfo interface{}) (string, error)
- func ExtractToken(r *http.Request) string
- func GetClaimsFromToken(tokenString string) (jwt.MapClaims, error)
- func JWTClaimsFromContext(ctx context.Context) (jwt.MapClaims, bool)
- func Pretty(data interface{})
- func SetJWTClaimsContext(ctx context.Context, claims jwt.MapClaims) context.Context
- func TokenValid(r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func ExtractToken ¶
func SetJWTClaimsContext ¶
func TokenValid ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.