Open mliebold opened 1 month ago
I think I am having the same issue, I more recently moved over to a new email for my barely used facebook account. While testing out Supabase auth for a project it keeps giving me the "Error getting user email from external provider".
Bug report
Describe the bug
When setting up OAuth with Facebook Login I am getting the error "Error getting user email from external provider". I have seen this error posted several other times here, but I have not an actual solution.
me?fields=id,name,email
it does not return the email and tells me "The email field was not returned. This may be because the email was missing, invalid or hasn't been confirmed."What I assume is happening is that my Facebook account is old and at some point, I deleted the original email and added my new one. Facebook is probably not setting this email as a "Primary Email" in the backend and there does not seem to be a way to do so manually on my end. It does not make sense why they would not return my email when I am using it to sign in to my Facebook account.
This issue seems to most likely be on the Facebook end and I submitted a support ticket with them. But, relying so heavily on the email return for the authentication seems to be a bit of a flaw. I would like to use Supabase as my backend service including for authentication, but it doesn't seem very reliable if any users that go to sign into my application will not be able to if they have changed their email at some point in the past.
Any additional information on if my assumption is correct, or if there is a way around this issue, besides using a different authentication service, would be great.
Thank you
To Reproduce
Don't think you will be able to reproduce it unless you have a Facebook account that has changed email addresses