Prepare for the PgBouncer and IPv4 deprecations on 26th January 2024

Javascript Reference v2.0

Sign in a user through OAuth

Log in an existing user via a third-party provider. This method supports the PKCE flow.

  • 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'
})