Many JWT Middlewares OR-ed together
Hi, I have a set of legal JWT keys. I'd like any one of them to allow a request through the middleware.
This works:
Is there a supported mechanism for this?
3 Replies
this kind of does it: https://hono.dev/docs/middleware/builtin/combine#some
that's exactly what I need.
thanks!
Hm, is there any way to provide the response to produce on a failed validation?
i've never used it. i'd expect uncaught errors to be handled by
app.onError
. otherwise, it will keep calling middleware until it runs out, or one of them returns true