Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireAuth ¶
func RequireAuth(rdb *redis.Client) gin.HandlerFunc
RequireAuth is a Gin middleware that validates an access token. If the token is valid, the request proceeds to the next handler. If the token is missing or invalid, the request is aborted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.