variable TRPCAuthorizationMiddleware
The get_authorization_middleware
function is a TypeScript middleware that checks for an
authorization header in the request, validates a JSON Web Token (JWT), and returns the payload if it
is valid.
type
🔗
(mw: TApiMiddleware) => unknown