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);
  };


It should console.log 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()?
Was this page helpful?