© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
Cillian

signInWithOAuth redirect to not working as expected

I'm trying to implement google & facebook login to my site, but when using the below code it just redirects me to the root

const logInWithSocialProvider = (provider: "google" | "facebook") => supabase.auth.signInWithOAuth({
    provider: provider,
    options: {
      redirectTo: `${origin}${$path('/account/oauth/callback')}`,
    }
  });
const logInWithSocialProvider = (provider: "google" | "facebook") => supabase.auth.signInWithOAuth({
    provider: provider,
    options: {
      redirectTo: `${origin}${$path('/account/oauth/callback')}`,
    }
  });
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

React authentication not working as expected
SupabaseSSupabase / help-and-questions
4y ago
v2 Realtime not working as expected.
SupabaseSSupabase / help-and-questions
4y ago
Reset password link not working as expected
SupabaseSSupabase / help-and-questions
4mo ago
Realtime subscription callback not working as expected
SupabaseSSupabase / help-and-questions
4y ago