Documentation ¶
Overview ¶
Package jwts is authentication by JWT
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJWTResponseToken ¶
GetJWTResponseToken returns jwt token from response
Types ¶
type CustomClaims ¶
type CustomClaims struct { Option string `json:"option"` jwt.StandardClaims }
CustomClaims is jwt claim
type JWTer ¶
type JWTer interface { CreateBasicToken(t int64, clientID, userName string) (string, error) CreateCustomToken(t int64, clientID, userName, option string) (string, error) ValidateToken(tokenString string) error ValidateTokenWithClaim(tokenString, clientID, userName string) error ValidateTokenWithCustomClaim(tokenString, clientID, userName, option string) error }
JWTer interface
Click to show internal directories.
Click to hide internal directories.