Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireTobeloggedIn ¶
func RequireTobeloggedIn(jwtSecret string) gin.HandlerFunc
Checks if user is has a valid token
func SetUserContext ¶
func SetUserContext(secret string) gin.HandlerFunc
set contex when user has a valid token
Types ¶
Click to show internal directories.
Click to hide internal directories.