Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JWTAuthMiddleware = jwtmiddleware.New(jwtmiddleware.Options{ ValidationKeyGetter: func(token *jwt.Token) (interface{}, error) { secret := []byte(os.Getenv(config.Auth0ClientSecret)) if len(secret) == 0 { return nil, errors.New(missingSecretKey) } return secret, nil }, })
JWTAuthMiddleware is the route middleware for jwt request auth
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.