[provider:discord] CallbackRouteError from authjs
works on dev, but in production like this
same issue here : next-auth
Looks like an upstream issue related to auth.js. I'll leave this open to track it. @namdevel I recommend you open a more fleshed out issue in next-auth/authjs itself, with a reproduction.
upstream issue https://github.com/nextauthjs/next-auth/issues/7764
@namdevel can you try the fix proposed in next-auth, ie updating callback url in the discord app settings to http://localhost:3000/api/auth/callback/discord ?
also for the reproduction I'm gonna need a link of your deployed app so that I can inspect the network requests.
There's also another fix suggested here that you can try https://github.com/nextauthjs/next-auth/issues/6523
the link my deployed app is already writed in my repo check in the right side
the problem is only in production, in dev the app working
Did you try the default authorization link fix ?
still error
@namdevel As this is not an issue with authjs-nuxt but with authjs itself, you're gonna have to look for help and changes in authjs itself https://github.com/nextauthjs/next-auth/issues/7764 :/
@namdevel try this https://github.com/nextauthjs/next-auth/discussions/948
@Hebilicious how to set custom auth url on authjs-nuxt
still error in production,
on dev, that was working as a charm