Documentation
¶
Index ¶
- func CreateToken(user string) (string, error)
- func DeleteToken(c *gin.Context)
- func GetToken(c *gin.Context) (string, error)
- func GetUserFromToken(c *gin.Context) (string, error)
- func IsLoggedIn(c *gin.Context) bool
- func JwtMiddleware() gin.HandlerFunc
- func ParseToken(token string, secret string) (*jwt.Token, error)
- func RefreshToken(c *gin.Context)
- func SetToken(c *gin.Context, token string)
- type UserToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func IsLoggedIn ¶
func JwtMiddleware ¶
func JwtMiddleware() gin.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.