middleware
Create a Hono-compatible middleware function that validates incoming requests
against the configured auth methods. Unauthorized requests receive a
401 Unauthorized JSON response.
Parameters
None.
Returns
(c: any, next: () => Promise<void>) => Promise<Response | void> — A
middleware function suitable for use with Hono’s app.use().