Flutter: signInWithSSO
- Before you can call this method you need to establish a connection to an identity provider. Use the CLI commands to do this.
- If you've associated an email domain to the identity provider, you can use the
domain property to start a sign-in flow.
- In case you need to use a different way to start the authentication flow with an identity provider, you can use the
providerId property. For example:
- Mapping specific user email addresses with an identity provider.
- Using different hints to identify the correct identity provider, like a company-specific page, IP address or other tracking information.
Parameters
providerId
(Optional)The ID of the SSO provider to use for signing in.
domain
(Optional)The email domain to use for signing in.
redirectTo
(Optional)The URL to redirect the user to after they sign in with the third-party provider.
captchaToken
(Optional)The captcha token to be used for captcha verification.
launchMode
(Optional)The launch mode for the auth screen. Defaults to `LaunchMode.platformDefault`.
Examples
Sign in with email domain
await supabase.auth.signInWithSSO(
domain: 'company.com',
);
Sign in with provider UUID
await supabase.auth.signInWithSSO(
providerId: '21648a9d-8d5a-4555-a9d1-d6375dc14e92',
);