Closed ymansurozer closed 1 week ago
Okay, this one was one me, I guess. 🤷🏽 This was the solution:
Apparently, if you define routes in the wrangler config, it will somehow be used in the requests, hence the callback was not working. Once I deleted it, all worked fine.
Hi!
I've built a very simple auth with Google provider. It works fine if I build and preview with a
node server
Nitro preset but if I build with thecloudflare-module
present and preview via wrangler withwrangler dev
, it does not work. Here is what happens:When I input my Google credentials and continue, it redirects to the app with the appropriate code in the query but I get a
internal server error
and wrangler logs show a[nuxt] [request error] [unhandled] [400] [POST] "https://oauth2.googleapis.com/token": 400 Bad Request
error.My authorized redirect URI's have
http://localhost:3000/auth/google
configured and again, it works in a node build.server/routes/auth/google.ts
nuxt.config.ts
wrangler.toml
I'm on
0.5.3
version.