authjs-nuxt icon indicating copy to clipboard operation
authjs-nuxt copied to clipboard

[provider:discord] CallbackRouteError from authjs

Open voidsnam opened this issue 2 years ago • 13 comments

Screenshot_152

works on dev, but in production like this

voidsnam avatar Jul 20 '23 13:07 voidsnam

same issue here : next-auth

voidsnam avatar Jul 20 '23 14:07 voidsnam

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.

Hebilicious avatar Jul 20 '23 19:07 Hebilicious

@Hebilicious i has been update the repo check this : @afkadev/nuxt-auth-discord

Screenshot_153

voidsnam avatar Jul 21 '23 03:07 voidsnam

upstream issue https://github.com/nextauthjs/next-auth/issues/7764

Hebilicious avatar Jul 22 '23 03:07 Hebilicious

@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

Hebilicious avatar Jul 22 '23 03:07 Hebilicious

Screenshot_159

the link my deployed app is already writed in my repo check in the right side

voidsnam avatar Jul 22 '23 04:07 voidsnam

the problem is only in production, in dev the app working

voidsnam avatar Jul 22 '23 04:07 voidsnam

Did you try the default authorization link fix ?

Hebilicious avatar Jul 22 '23 05:07 Hebilicious

still error

voidsnam avatar Jul 22 '23 06:07 voidsnam

@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 :/

Hebilicious avatar Jul 22 '23 10:07 Hebilicious

@namdevel try this https://github.com/nextauthjs/next-auth/discussions/948

Hebilicious avatar Jul 23 '23 01:07 Hebilicious

@Hebilicious how to set custom auth url on authjs-nuxt

voidsnam avatar Jul 23 '23 02:07 voidsnam

Screenshot_164 still error in production, on dev, that was working as a charm

voidsnam avatar Jul 23 '23 03:07 voidsnam