domain
property to start a sign-in flow.providerId
property. For example:
UUID of the SSO provider. One of `providerId` or `domain` is required.
Domain name of the organization to use SSO with. One of `providerId` or `domain` is required.
The URL to redirect the user to after they have signed in. Must be a configured redirect URL for your Supabase instance.
undefined
// You can extract the user's email domain and use it to trigger the
// authentication flow with the correct identity provider.
let url = try await await supabase.auth.signInWithSSO\{
domain: "company.com"
\}
// Open the URL using your preferred method to complete sign-in process.
UIApplication.shared.open(url)
// Useful when you need to map a user's sign in request according
// to different rules that can't use email domains.
let url = try await supabase.auth.signInWithSSO\{
providerId: "21648a9d-8d5a-4555-a9d1-d6375dc14e92"
\}
// Open the URL using your preferred method to complete sign-in process.
UIApplication.shared.open(url)