nextauthjs / next-auth

Authentication for the Web.
https://authjs.dev
ISC License
25.19k stars 3.56k forks source link

Discord Provider Callback URL is Incorrect #9114

Closed conrmahr closed 11 months ago

conrmahr commented 1 year ago

What is the improvement or update you wish to see?

Documentation and code comments reference incorrect callback URI for the Provider Discord:

❌ Screenshot of Documentation: Discord Callback URL

❌ Code Comment: https://github.com/nextauthjs/next-auth/blob/87670000917a04b1d22191b4aa07c391fe910c5d/packages/core/src/providers/discord.ts#L94C6-L94C6

Correct Discord Callback URL: https://example.com/auth/callback/discord

Is there any context that might help us understand?

Tested with:

        "devDependencies": {
                "@sveltejs/adapter-node": "^1.3.1",
                "@sveltejs/kit": "^1.0.0",
                "svelte": "^4.2.2",
        },
        "type": "module",
        "dependencies": {
                "@auth/core": "^0.18.0",
                "@auth/sveltekit": "^0.3.11"
        }

Does the docs page already exist? Please link to it.

https://authjs.dev/reference/core/providers/discord

dotarjun commented 1 year ago

Can I be assigned to this issue? I'd like to work on this

LekoArts commented 11 months ago

The cause of this is this related issue: https://github.com/nextauthjs/next-auth/issues/6980

ndom91 commented 11 months ago

Sorry for the confusion, the URL in the docs you screenshoted are specific to next.js, as @LekoArts pointed out the paths in SvelteKit are hardcoded to /auth/.. (see: next-auth/packages/frameworks-sveltekit/src/lib/index.ts:220)