Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthUser ¶
func AuthUser(s model.TokenService) gin.HandlerFunc
AuthUser extracts a user from the Authorization header which is of the form "Bearer token" It sets the user to the context if the user exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.