Documentation
¶
Overview ¶
Package jwt provides convenience wiring around the stable JWT middleware.
The package aliases core JWT middleware types, reads JWT_* environment configuration, and exposes the same subject and health-check helpers. Import the core middleware directly when environment loading is not needed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthChecker ¶
func HealthChecker(cfg Config, client *http.Client) ports.HealthChecker
HealthChecker returns a JWKS health checker.
Types ¶
type Config ¶
Config aliases the JWT middleware configuration.
func LoadConfig ¶
LoadConfig reads JWT configuration from environment.
type Middleware ¶
type Middleware = jwtmw.Middleware
Middleware aliases the JWT middleware.
func NewMiddleware ¶
NewMiddleware creates a JWT middleware.
Click to show internal directories.
Click to hide internal directories.