# Functions
Authenticate creates a middleware to verify and parse jwt.
Authorize checks if the request is permitted to reach the handler.
FormPayload returns the validated form payload stored in request's context.
JSONPayload returns the validated JSON payload stored in request's context.
JWTPayload returns the context value containing the JWT payload found in authentication stage.
JWTWithPayloadType sets the payload data type for JWT paylod.
JWTWithSecret sets JWT Secret key.
Logger logs request and response statistics via slog.
PathValuePayload returns the validated path parameters stored in request's context.
QueryPayload returns the validated form payload stored in request's context.
No description provided by the author
SetupJWT sets up DefaultJWT.
ValidateForm validates request body and stores validated payload in the request's context.
ValidateJSON validates JSON body and stores validated payload in the request's context.
ValidatePathValue validates request path parameters and stores validated payload in the request's context.
ValidateQuery validates request search query and stores validated payload in the request's context.
# Variables
DefaultJWT is global JWT instance.
# Type aliases
AuthorizeFunc is the signature for request authorizing function.
JWTSetupFunc is the signature for setting up JWT via builder function.