Discord login always prompts for authorization #320

Closed
opened 2026-03-13 07:41:46 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @nicksheffield on GitHub (Dec 3, 2024).

Hey guys, I love this library and I'm really excited to use this library in prod.

I've noticed when using Discord as a social login provider, it always prompts the user to authorize.
It seems like this shouldn't be the case, since I've noticed at least the Github one doesn't do this after the first time.

In Discord's own docs they mention a "prompt" url parameter that can be used to control this behaviour: https://discord.com/developers/docs/topics/oauth2#authorization-code-grant

It's not mentioned on that page, but the prompt value seems to default to "consent".

Probably makes sense to set it to "none", at least by default.

Thanks

Originally created by @nicksheffield on GitHub (Dec 3, 2024). Hey guys, I love this library and I'm really excited to use this library in prod. I've noticed when using Discord as a social login provider, it always prompts the user to authorize. It seems like this shouldn't be the case, since I've noticed at least the Github one doesn't do this after the first time. In Discord's own docs they mention a "prompt" url parameter that can be used to control this behaviour: https://discord.com/developers/docs/topics/oauth2#authorization-code-grant It's not mentioned on that page, but the prompt value seems to default to "consent". Probably makes sense to set it to "none", at least by default. Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#320