You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I logged the headers to the console and was able to see the cookies at the time of the request. I forgot that in my application I am using the host prefix. I still don't have a way to specify the prefix other than adding the prefix to the cookie name in the middleware. E.g., with a cookie called jwt, I tried jwt({ cookie: '__Host-jwt', ... }). The response stills errors out, but with an error description of "token verification failure", now likely due to it being a signed cookie. Previously, I was getting "no authorization included in request".
What version of Hono are you using?
4.1.3
What runtime/platform is your app running on?
Node.JS
What steps can reproduce the bug?
Set up a signed cookie with jwt:
Then set up the jwt middleware:
What is the expected behavior?
I should be able to access a resource when the cookie is set.
What do you see instead?
Trying to access a resource that is using the jwt middleware returns with a 401.
Additional information
jwt middleware needs a parameter to specify the secret for the cookie and needs to be able to handle signed cookies.
The text was updated successfully, but these errors were encountered: