Dart Reference v2.0

Sign in a user through OAuth

Signs the user in using third-party OAuth providers.

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

    The OAuth provider to use for signing in.

    redirectTo
    Optional
    String

    The URL to redirect the user to after they sign in with the third-party provider.

    scopes
    Optional
    String

    A list of scopes to request from the third-party provider.

    authScreenLaunchMode
    Optional
    LaunchMode

    The launch mode for the auth screen. Defaults to LaunchMode.platformDefault.

    queryParams
    Optional
    Map<String, String>

    Additional query parameters to be passed to the OAuth flow.


await supabase.auth.signInWithOAuth(OAuthProvider.github);