© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
36 replies
cheese

Getting 521 with Google Auth

auth
I've gone through the Login with Google tutorial (https://supabase.com/docs/guides/auth/social-login/auth-google?queryGroups=platform&platform=web) but when i call
      const { error } = await supabase.auth.signInWithOAuth({
        provider: 'google',
        options: {
          redirectTo: `${window.location.origin}/auth/callback`,
        },
      });
      const { error } = await supabase.auth.signInWithOAuth({
        provider: 'google',
        options: {
          redirectTo: `${window.location.origin}/auth/callback`,
        },
      });

I get
<title>my_project_id.supabase.co | 521: Web server is down</title>
<title>my_project_id.supabase.co | 521: Web server is down</title>

I was able to set this up in another project but can't figure out what's wrong here.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Google Authentication paired with Supabase Auth
SupabaseSSupabase / help-and-questions
8mo ago
google auth with expo
SupabaseSSupabase / help-and-questions
3y ago
Getting 520 and 521 error on branch
SupabaseSSupabase / help-and-questions
7mo ago
WeWeb And Google Supabase Auth Not redirecting/Authenticating
SupabaseSSupabase / help-and-questions
2mo ago