Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken generates a JWT token with a configured token secret
func TokenCheck ¶
TokenCheck Middleware to secure endpoints
func ValidateToken ¶
ValidateToken validates an input token and tries to renew a token if close to expiring
Types ¶
type Claims ¶
type Claims struct {
Username string `json:"username"`
jwt.StandardClaims
}
Claims jwt claims container
Click to show internal directories.
Click to hide internal directories.