Custom response with bearerAuth
I would like to return a custom response when verifyToken is false.
Is it possible?
1 Reply
Maybe you can throw http exceptions - https://hono.dev/docs/api/exception
Exception - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.