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
OAuthProviderThe OAuth provider to use for signing in.
redirectTo
Optional
StringThe URL to redirect the user to after they sign in with the third-party provider.
scopes
Optional
StringA list of scopes to request from the third-party provider.
authScreenLaunchMode
Optional
LaunchModeThe 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);