Do we have to ask for Email in Discord Login?
I am a discord bot developer. While developing a website for it, i wanted to use it in the login system while using Supabase as a ready database. However, when i remove the email request from the scopes, supabase always gives an error because there is no email. Is there any way to solve this problem? I don't want to ask my users for an email and i don't want them to have even the slightest suspicion. I also don't need it
15 Replies
Please i would be very grateful if a knowledgeable person who will write an answer will tag me in his answer
Supabase requires an email or phone # and for OAuth that is email.
Oh :(
I have another quesition
Since i am a Discord bot developer, i also need guilds as scope. But can't i get this with Supabase?
You should be able to request scopes. There is an OAuth option to list the scopes you want.
There is no such feature in Supabase



Yea


options, scopes like what I showed is what is documented
Login with Discord | Supabase Docs
Add Discord OAuth to your Supabase project
I didn't see any information here, but I can't find any information about it
I just showed the code from the JS reference. The example they happen to use is Github...
https://supabase.com/docs/reference/javascript/auth-signinwithotp
JavaScript: Sign in a user through OTP | Supabase Docs
Supabase API reference for JavaScript: Sign in a user through OTP

But guilds does not support
I am now pulling servers from discord by sending a request with the incoming Access token. It's done