Home

Sign in a user through OAuth

Log in an existing user via a third-party provider.

  • This method is used for signing in using a third-party provider.
  • Supabase supports many different third-party providers.
Parameters
  • credentials
    REQUIRED
    SignInWithOAuthCredentials

const { data, error } = await supabase.auth.signInWithOAuth({
  provider: 'github'
})