hari5h
hari5h
CCConvex Community
Created by hari5h on 9/24/2024 in #support-community
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?
4 replies