You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is basically me attempting to re-open #12208 with a - frankly, needless - fork of next-auth-example that strips away everything but the discord provider because your bot is obsessed with reproduction urls.
This issue is as simple and reproducible as you can be because the discord provider is just plain broken right now, even in it's most basic form.
Following the Getting Started guide (with create-next-app@14), OAuth fails on callback with the following:
Server error
There is a problem with the server configuration.
Check the server logs for more information.
Server logs show
[auth][error] CallbackRouteError: Read more at https://errors.authjs.dev#callbackrouteerror
[auth][cause]: OperationProcessingError: unexpected JWT "iss" (issuer) claim value
[auth][details]: {
"expected": "https://authjs.dev",
"claims": {
"iss": "https://discord.com",
"aud": [
"[REDACTED]"
],
"iat": [REDACTED],
"exp": [REDACTED],
"auth_time": 1731163185,
"at_hash": "[REDACTED]",
"sub": "[REDACTED]"
},
"claim": "iss",
"provider": "discord"
}
GET /api/auth/callback/discord?code=[REDACTED] 302 in 687ms
GET /api/auth/error?error=Configuration 500 in 9ms
Are you asking for the openid scope? If so the issue is clear - ID Token is issued as a result of the scope and the Provider configuration doesn't have a issuer configuration. I believe the issuer value https://discord.com just needs to be added in the provider definition.
jariz
added a commit
to jariz-forks/next-auth
that referenced
this issue
Feb 23, 2025
Provider type
Discord
Environment
Reproduction URL
https://github.com/jariz-forks/next-auth-discord-broken
Describe the issue
This is basically me attempting to re-open #12208 with a - frankly, needless - fork of next-auth-example that strips away everything but the discord provider because your bot is obsessed with reproduction urls.
This issue is as simple and reproducible as you can be because the discord provider is just plain broken right now, even in it's most basic form.
Following the Getting Started guide (with create-next-app@14), OAuth fails on callback with the following:
Server logs show
I have http://localhost:3000/api/auth/callback/discord configured in the Discord Developer Portal as a redirect url, as per the guide instructions.
How to reproduce
npx auth add discord
and follow instructionsExpected behavior
Callback should not fail
The text was updated successfully, but these errors were encountered: