You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Oauth fails when no email is linked to account #214
Supabase Oauth relies on the assumption that users signing in with Oauth providers have an email linked to their account, which isn't always the case.
Solution
It would be nice if phone numbers could be used instead of email when using Oauth.
Example
An example is Facebook. If users haven't linked an email to their account they're screwed. This may turn off some from my app/website and lead them to using an alternate app/website
Reacted by sombrerodecolores, Michael Tromba, yairhaimo, Jason, Robin Millette, Pavlos Efstathiou, Ben Hogan, Fabio Giolito, Remora Blackflag, Guillaume and 8 more
I'll move this to the GoTrue repo so that the auth team can comment 👍
@kangmingtay - the related issue here has a lot of discussion. I'll leave it in the supabase repo for now but can shift it here if you prefer (or close this as a duplicate)
I spent ages trying to debug this. I think in the meantime there should either be a) a big red flag in the docs on potentially effected providers (ran into it with Twitter in my case), or just flat out disabling those providers until there's a fix. Because it means that any provider where an email isn't guaranteed could fail randomly in production after testing during dev.
Reacted by yairhaimo, Pavlos Efstathiou, Jason, Nick W Forsberg, Jason and Ekim Cem Ülger
I'm experiencing the same issue. My accounts DO have emails so I think the root cause here is missing middleware to handle the additional request for the email from the API.
Hi everyone! We've started to work on this issue and are aware that this is not ideal for anyone who wants to oauth as the primary login mechanism. The PR is mentioned above and feel free to ask any questions / add in your thoughts. We will do this in phases for each provider instead of all at once. The first phase will include twitter and facebook for now.
Currently, the main question I have is:
Should a user who signs in with the oauth provider without an email address be automatically confirmed?
Reacted by Pavlos Efstathiou, Jason, Mads, Sarim Malik, helloromero, Simon and Sanju S
Thanks for taking a look at this, @kangmingtay. I'm happy to brainstorm suggestions in the meantime. Still, regarding my project, this is a severe hold-up, and the feasible workaround is to revert to Firebase/some other provider until this is solved.
Reacted by Pavlos Efstathiou, Stojan Dimitrovski and johnshift
@RichardAwoyemi Really sorry to hear that. We're working on quite a few things in the enterprise space this year and it's unlikely we'll be able to get to this. We are very aware of the issue and it is high on our agenda, but can't promise any timelines yet.
Reacted by Fernando de la Rosa
Reacted by Jason, Farid Ouachrar, Pavlos Efstathiou, Yinka Adedire and Jason
Activity
sandbox-apps commentedon Sep 11, 2021
Related to this: supabase/supabase#2853
kiwicopple commentedon Sep 12, 2021
I'll move this to the GoTrue repo so that the auth team can comment 👍
@kangmingtay - the related issue here has a lot of discussion. I'll leave it in the supabase repo for now but can shift it here if you prefer (or close this as a duplicate)
jtgi commentedon Jan 26, 2022
Adding a +1 here. Ran into this adding Discord login. I'm working on crypto/web3 use cases so asking for email is unfortunately a no go.
adrianhorning08 commentedon Feb 4, 2022
Anything we can do to help? +1 as well for this
RamyaChinnadurai commentedon Feb 16, 2022
+1. Facing issue with Twitter Oauth when there is no email linked with the user account.
supabase/supabase#2853
jnorris441 commentedon Feb 23, 2022
Seems like this issue makes Supabase auth unusable for a large chunk of users...unfortunate because it's a big part of the value proposition.
madeleineostoja commentedon Mar 1, 2022
I spent ages trying to debug this. I think in the meantime there should either be a) a big red flag in the docs on potentially effected providers (ran into it with Twitter in my case), or just flat out disabling those providers until there's a fix. Because it means that any provider where an email isn't guaranteed could fail randomly in production after testing during dev.
oespn commentedon Mar 4, 2022
I'm experiencing the same issue. My accounts DO have emails so I think the root cause here is missing middleware to handle the additional request for the email from the API.
This maybe helpful:
https://auth0.com/rules/get-twitter-email
sarimrmalik commentedon Mar 5, 2022
+1 for this, ran into the same issue with Twitter OAuth
kangmingtay commentedon Mar 8, 2022
Hi everyone! We've started to work on this issue and are aware that this is not ideal for anyone who wants to oauth as the primary login mechanism. The PR is mentioned above and feel free to ask any questions / add in your thoughts. We will do this in phases for each provider instead of all at once. The first phase will include twitter and facebook for now.
Currently, the main question I have is:
jnorris441 commentedon Mar 9, 2022
@kangmingtay I think if you are trusting a third party to vouch for their identity there is no reason to confirm them again. Maybe that is simplistic
madeleineostoja commentedon Mar 9, 2022
Agree about confirmation, to me the whole point of oauth is handing off validation to a trusted 3rd party
magikmea commentedon Sep 5, 2022
Any updates on this PR? thanks :)
kangmingtay commentedon Sep 6, 2022
hey everyone, i've left a reply on the PR to explain why we have decided not to move forward with it yet: #414 (comment)
jnorris441 commentedon Sep 7, 2022
I'm glad there was work done for this.
Is there a workaround better than putting in a fake auto-confirmed email like [email protected]?
richawo commentedon Sep 10, 2022
Thanks for taking a look at this, @kangmingtay. I'm happy to brainstorm suggestions in the meantime. Still, regarding my project, this is a severe hold-up, and the feasible workaround is to revert to Firebase/some other provider until this is solved.
hf commentedon Sep 29, 2022
@RichardAwoyemi Really sorry to hear that. We're working on quite a few things in the enterprise space this year and it's unlikely we'll be able to get to this. We are very aware of the issue and it is high on our agenda, but can't promise any timelines yet.
gaceladri commentedon Jan 30, 2024
Any update in 2024? :) Thank you for your open source work by the way! 🚀
michaelmagan commentedon Mar 13, 2024
I'd love to see this fixed as well.
sanderhelleso commentedon May 6, 2024
Any update on this?
yjgaia commentedon May 25, 2024
Any update?
nazariyv commentedon Jun 12, 2024
any update? thanks!
nevaarne commentedon Jun 12, 2024
Hi guys, any updates on this?
Silur commentedon Aug 16, 2024
any update?
exitss commentedon Feb 19, 2025
ANY UPDATEEEEEE!!!!!!!!????
madeleineostoja commentedon Mar 9, 2025
Please stop spamming all the subscribers to this issue, that's what the upvote emoji on the original comment is for