Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTAuth ¶
type JWTAuth struct {
ID uint `json:"id"`
Name string `json:"name"`
Surname string `json:"surname"`
Username string `json:"username"`
Password string `json:"password"`
}
JWTAuth structure will be used to handle the authenticated user data.
func (*JWTAuth) RefreshToken ¶
func (c *JWTAuth) RefreshToken(req http.ResponseWriter, key string) bool
RefreshToken will refresh JWT token
Click to show internal directories.
Click to hide internal directories.