Documentation ¶
Index ¶
- func GenerateToken(claims jwt.Claims) (string, error)
- func ParseToken(tokenString string) (map[string]interface{}, error)
- func Secret() jwt.Keyfunc
- func TokenValidationMiddleware(next http.Handler) http.Handler
- func ValidatePayloadToken(tokenString string, secret string) (bool, error)
- func ValidateToken(tokenString string, secret string) (bool, error)
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseToken ¶
func TokenValidationMiddleware ¶
We want all our routes for REST to be authenticated. So, we validate the token
func ValidatePayloadToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.