Documentation ¶
Index ¶
- func GenerateJWT(userName string) (string, error)
- func GetTokenClaims(c *gin.Context) (jwt.MapClaims, bool)
- func Init(r *gin.Engine)
- func IsAuthorized(endpoint func(c *gin.Context)) func(c *gin.Context)
- func SetHTTPOnlyToken(c *gin.Context, userName string)
- type LoginData
- type LoginDto
- type LoginResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateJWT ¶
func GetTokenClaims ¶
func SetHTTPOnlyToken ¶
Types ¶
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.