hari5hH
Convex Community16mo ago
3 replies
hari5h

Discord OAuth reauthorization

Hey all,

I've successfully set up convex-auth in my project and in the process of hooking up the OAuth providers. GitHub seems to be working fine, however, Discord is making me reauthorize myself everytime I log out.

According to the Discord docs, we need to pass in prompt=none to the Authorization URL (https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-authorization-url-example)

Is there any way to do this currently with useAuthActions() and the signIn() function?

I've tried onClick={() => signIn("discord", { prompt: "none" })} as suggested in the Auth.js GitHub (https://github.com/nextauthjs/next-auth/discussions/3490)

But it doesn't work as it seems only redirectTo is a param we can pass. Any ideas?
GitHub
Hello, Before opening a potential issue, I'd like to ask a question. I set up Discord with Next-Auth V4 but I encounter a problem I didn't have with V3. When clicking on "signin with d...
Discord is always asking to reauthorize the application · nextauthj...
Discord Developer Portal
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Discord Developer Portal — API Docs for Bots and Developers
Was this page helpful?