Replies: 4 comments 11 replies
-
Can you make sure that you're using the same version of auth.js/core in your lockfiles on cloudflare pages? There's isn't anything I can think of that could cause this weird callback behaviour between 0.1.8 and 0.1.9, as these changes were just related to cookies v0.1.8...v0.1.9 However the session not working might be due to the way cloudflare handles cookies and h3 In the meantime, I will try to switch back to |
Beta Was this translation helpful? Give feedback.
-
Yes, the versions of @auth/core in the lockfiles of both test websites are 0.9.0.
Thank you for your assistance. I will report the situation again when it's released. |
Beta Was this translation helpful? Give feedback.
-
This is fixed in the latest version |
Beta Was this translation helpful? Give feedback.
-
Until version 0.3.0 beta2, I still encountered the same issue in CFP. I have already used the suggested package.json configuration with NPM.
In addition to this, I would also like to report a few minor issues. The @auth/core version mentioned in the Getting started is 0.9.0, but when installing the current version of AuthJS, it requires @auth/core 0.10.0, leading to an error. Similarly, if using the latest @auth/core 0.12.0, it will also result in an error. In earlier documentation, there were three aliases setting, but now only
However, CFP build will failure if
Similarly, if |
Beta Was this translation helpful? Give feedback.
-
Hello,
When testing locally dev, both versions work fine. However, when I deploy them to Cloudflare Pages, v0.1.8 works without any issues, but v0.1.9 ~ v0.2.0-beta.1 fail to maintain the authenticated state and consistently show 'unauthenticated' status.
I tried adding signIn and session callbacks, and used
wrangler pages deployment tail
to observe the server and console.log message. I found that signIn functions properly on both version, and I can obtain the authentication information. However, after version 0.1.9, the session callback is not being triggered.v0.1.8
https://github.com/misway/authjs018
https://authjs018.pages.dev/
v0.1.10
https://github.com/misway/authjs0110
https://authjs0110.pages.dev/
Beta Was this translation helpful? Give feedback.
All reactions