© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
17 replies
cloud

Callback for supabase.auth.signInWithOAuth?

async function signInWithGoogle () {
    const supaAuthResponse = await supabase.auth.signInWithOAuth(
      {
        provider: 'google',
        options: {
          queryParams: {
            access_type: 'offline',
            prompt: 'consent',
          },
        },
      });

      console.log(await supaAuthResponse);
  };
async function signInWithGoogle () {
    const supaAuthResponse = await supabase.auth.signInWithOAuth(
      {
        provider: 'google',
        options: {
          queryParams: {
            access_type: 'offline',
            prompt: 'consent',
          },
        },
      });

      console.log(await supaAuthResponse);
  };


It should
console.log
console.log
supaAuthResponse
supaAuthResponse
, but I don't get anything after I complete OAuth. Also, I want to call a certain function after the user sign ins, is there a callback function for
supabase.auth.signInWithOAuth()
supabase.auth.signInWithOAuth()
?
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

supabase auth
SupabaseSSupabase / help-and-questions
3y ago
Supabase auth for admin panel
SupabaseSSupabase / help-and-questions
14mo ago
What library for supabase/auth
SupabaseSSupabase / help-and-questions
14mo ago
facebook signInWithOAuth help
SupabaseSSupabase / help-and-questions
5mo ago