Skip to content

Oauth fails when no email is linked to account  #214

Open

Description

@lunandd

Feature request

Problem

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

Activity

  1. sandbox-apps commented on Sep 11, 2021

    @sandbox-apps

    Related to this: supabase/supabase#2853

  2. kiwicopple commented on Sep 12, 2021

    @kiwicopple
    Member

    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)

  3. added
    UX
    on Jan 19, 2022
  4. jtgi commented on Jan 26, 2022

    @jtgi

    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.

  5. adrianhorning08 commented on Feb 4, 2022

    @adrianhorning08

    Anything we can do to help? +1 as well for this

  6. RamyaChinnadurai commented on Feb 16, 2022

    @RamyaChinnadurai

    +1. Facing issue with Twitter Oauth when there is no email linked with the user account.

    supabase/supabase#2853

  7. jnorris441 commented on Feb 23, 2022

    @jnorris441

    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.

  8. madeleineostoja commented on Mar 1, 2022

    @madeleineostoja

    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.

  9. oespn commented on Mar 4, 2022

    @oespn

    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

  10. sarimrmalik commented on Mar 5, 2022

    @sarimrmalik

    +1 for this, ran into the same issue with Twitter OAuth

  11. kangmingtay commented on Mar 8, 2022

    @kangmingtay
    Member

    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:

    1. Should a user who signs in with the oauth provider without an email address be automatically confirmed?
  12. jnorris441 commented on Mar 9, 2022

    @jnorris441

    @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

  13. madeleineostoja commented on Mar 9, 2022

    @madeleineostoja

    Agree about confirmation, to me the whole point of oauth is handing off validation to a trusted 3rd party

  14. magikmea commented on Sep 5, 2022

    @magikmea

    Any updates on this PR? thanks :)

  15. kangmingtay commented on Sep 6, 2022

    @kangmingtay
    Member

    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)

  16. jnorris441 commented on Sep 7, 2022

    @jnorris441

    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]?

  17. richawo commented on Sep 10, 2022

    @richawo

    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.

  18. hf commented on Sep 29, 2022

    @hf
    Contributor

    @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.

  19. gaceladri commented on Jan 30, 2024

    @gaceladri

    Any update in 2024? :) Thank you for your open source work by the way! 🚀

  20. michaelmagan commented on Mar 13, 2024

    @michaelmagan

    I'd love to see this fixed as well.

  21. sanderhelleso commented on May 6, 2024

    @sanderhelleso

    Any update on this?

  22. yjgaia commented on May 25, 2024

    @yjgaia

    Any update?

  23. nazariyv commented on Jun 12, 2024

    @nazariyv

    any update? thanks!

  24. nevaarne commented on Jun 12, 2024

    @nevaarne

    Hi guys, any updates on this?

  25. Silur commented on Aug 16, 2024

    @Silur

    any update?

  26. exitss commented on Feb 19, 2025

    @exitss

    ANY UPDATEEEEEE!!!!!!!!????

  27. madeleineostoja commented on Mar 9, 2025

    @madeleineostoja

    Please stop spamming all the subscribers to this issue, that's what the upvote emoji on the original comment is for

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    UX

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions