Creates a middleware that extracts a token from a custom header and validates it via the provided TokenVerifier.
On success, sets req.auth to the verified AuthInfo — same contract as the SDK's bearer auth middleware.
req.auth
Custom header auth configuration
Express middleware
Creates a middleware that extracts a token from a custom header and validates it via the provided TokenVerifier.
On success, sets
req.authto the verified AuthInfo — same contract as the SDK's bearer auth middleware.