We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is my localhost environment:
I don't know Netlify environment.
https://github.com/sun-ergo-s/testing-nuxt-on-netlify
Deployed on Netlify: https://whimsical-biscotti-346a06.netlify.app/
I have a clean install of Nuxt@3.5.3 application with @sidebase/nuxt-auth@0.5.0 (also tried 0.6.0-beta.2).
Nuxt@3.5.3
@sidebase/nuxt-auth@0.5.0
0.6.0-beta.2
After deploying on Netlify I got the OAuthCallback error using Google/Facebook provider in URL after redirect.
OAuthCallback
On localhost everything works fine.
I have defined AUTH_ORIGIN and NEXTAUTH_URL variables on Netlify and also in config file:
AUTH_ORIGIN
NEXTAUTH_URL
auth: { origin: process.env.AUTH_ORIGIN }
Works on Vercel. I also tried this solution but it didn't work:
add cookies config
cookies: { pkceCodeVerifier: { name: "next-auth.pkce.code_verifier", options: { httpOnly: true, sameSite: "none", path: "/", secure: true, }, }, },
Originally posted by @desenmeng in nextauthjs/next-auth#6898 (comment)
The text was updated successfully, but these errors were encountered:
+1 on this -- I'm hitting the same issue. Works on Vercel just fine though.
Sorry, something went wrong.
@sun-ergo-s I figured out a fix for this!
The issue was actually in Nitro -- it was not handling the Set-Cookie header properly. Here is the fix: unjs/nitro#1452
Set-Cookie
You can pull in the latest, edge version of Nitro following the steps here: Hebilicious/authjs-nuxt#51 (comment)
Specifically adding to my package.json file:
package.json
"resolutions": { "nitropack": "npm:nitropack-edge@latest" },
No branches or pull requests
Environment
This is my localhost environment:
I don't know Netlify environment.
Reproduction
https://github.com/sun-ergo-s/testing-nuxt-on-netlify
Deployed on Netlify: https://whimsical-biscotti-346a06.netlify.app/
Describe the bug
I have a clean install of
Nuxt@3.5.3
application with@sidebase/nuxt-auth@0.5.0
(also tried0.6.0-beta.2
).After deploying on Netlify I got the
OAuthCallback
error using Google/Facebook provider in URL after redirect.On localhost everything works fine.
I have defined
AUTH_ORIGIN
andNEXTAUTH_URL
variables on Netlify and also in config file:Additional context
Works on Vercel. I also tried this solution but it didn't work:
add cookies config
Originally posted by @desenmeng in nextauthjs/next-auth#6898 (comment)
Logs
The text was updated successfully, but these errors were encountered: