Logging in with Facebook gives 502 error
See original GitHub issueBug report
Facebook login gives 502 error when being set up according to the documentation.
Describe the bug
Following the instructions on: https://supabase.com/docs/guides/auth/auth-facebook
When running the following code:
const { user, session, error } = await supabase.auth.signIn({
provider: 'facebook'
})
I get sent to https://[my-project].supabase.co/auth/v1/authorize?provider=facebook
that gives me 502, bad gateway from Cloudflare.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Create a new Facebook app
- Enter your Facebook apps ID and Secret to Supabase.
- Add you supabase, url +
/auth/v1/callback/
as Valid OAuth Redirect URIs in your Facebook app. - Run the following code
const { user, session, error } = await supabase.auth.signIn({
provider: 'facebook'
})
Expected behavior
I would have to accept connecting with Facebook.
Screenshots

System information
- OS: MacOS
- Browser: All
- Version of supabase-js: 1.29.1
- Version of Node.js: 16.13.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:32 (10 by maintainers)
Top Results From Across the Web
What is a 502 Bad Gateway and how do you fix it? - IT PRO
An Error 502 Bad Gateway means there is a problem with the website's server, rather than your computer, router, or internet connection. It's...
Read more >How To Fix a 502 Bad Gateway Error - Kinsta
The 502 Bad Gateway error specifically means that the server received an invalid response from an inbound server.
Read more >The “502 Bad Gateway” error... - How to Fix Browser Issues
Certain applications that block pop up ads works through reverse proxy. Bad Gateway 502 occurs when a reverse proxy server gets an invalid...
Read more >502 Bad Gateway Error [Solved] - freeCodeCamp
In more technical terms, the “502” in the error is an HTTP status code which indicates that one server received an invalid response...
Read more >502 bad gateway: how to solve it (2022) - SupportHost
While browsing, your browser sends requests to a server, which in turn manages incoming requests and provides the response with codes indicating the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dthyresson Maybe this issue should be re-opened - multiple people are still reporting it and the team might not have visibility that it still exists.
The problem seems fixed! (on my side) 🎉