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
Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.
I too am seeing this issue. I'm using @fastify/cookie with @fastify/jwt, and the cookies property is never initialized. I believe this is fallout from a change in @fastify/cookie #248
I too am seeing this issue. I'm using @fastify/cookie with @fastify/jwt, and the cookies property is never initialized. I believe this is fallout from a change in @fastify/cookie #248
In that PR, there is no change to the behavior of the function
Prerequisites
Fastify version
4.24.3
Plugin version
No response
Node.js version
20.10
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
16.2
Description
When setting the plugin to only look for the token in the cookies and with the cookieName specified it fails to look there.
While checking the lookupToken function it seems that there is the following test which will fail every time as the cookie variable is not defined.
Steps to Reproduce
Try to define the options as below:
Expected Behavior
To find the token in the request.cookies[JWT_COOKIE].
The text was updated successfully, but these errors were encountered: