Documentation
¶
Overview ¶
Handle JWT authentication using the gin-jwt middleware
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MiddlewareHandler ¶
func MiddlewareHandler(authMiddleware *jwt.GinJWTMiddleware) gin.HandlerFunc
Middleware handler for JWT authentication
func Params ¶
func Params[T user]() *jwt.GinJWTMiddleware
Generate default JWT parameters for the middleware
func RegisterRoute ¶
func RegisterRoute(g *gin.RouterGroup, handle *jwt.GinJWTMiddleware)
Register JWT routes with the given middleware
Types ¶
type JwtRequest ¶
JwtRequest represents the incoming request for a JWT
Click to show internal directories.
Click to hide internal directories.