Skip to content

Discord OAuth #120

Answered by wiverson
RuslanM1102 asked this question in Q&A
Discussion options

You must be logged in to vote

Here's the answer... but it's non-trivial to implement.

Option A: You'll want to open up the user's browser with the correct Discord URL. That will kick it over to the Supabase project URL under the covers to handle getting a session. Then you'll want the Supabase project to kick it back to your app using a deep link. Deep linking varies pretty dramatically.

Option B: When the user starts the Discord log in process, also open a connection back to your server (e.g. via WebSockets or polling an endpoint). This will listen for a login with a unique id generated by the app. Then open the browser flow for the Discord login, which concludes with the login hitting a web page you set up. This web…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RuslanM1102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants