Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeToken ¶
DecodeToken handles decoding of a jwt token
func GenerateToken ¶
GenerateToken handles generation of a jwt code
func RefreshToken ¶
RefreshToken handles refreshing a jwt token
Types ¶
type Claims ¶
type Claims struct {
UserID string `json:"username"`
jwt.StandardClaims
}
Claims defines jwt claims
Click to show internal directories.
Click to hide internal directories.