For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
.signedIn..domain to start a sign-in flow..providerID. For example:
ssoSignInURL(_:options:). It returns an OAuthFlow with the URL to open.`.domain(String)`, the domain name of the organization to use SSO with, or `.providerID(UUID)`, the UUID of the SSO provider.
`redirectTo`, the URL to redirect the user to after they have signed in, which must be a configured redirect URL for your Supabase instance, and `captchaToken`.
Shows the identity provider page. The default on Apple platforms is `ASWebAuthenticationSessionPresenter`. On other platforms you must pass one.
// You can extract the user's email domain and use it to trigger the
// authentication flow with the correct identity provider.
let session = try await supabase.auth.signInWithSSO(
.domain("company.com"),
options: SSOOptions(redirectTo: URL(string: "my-app-scheme://callback")!)
)
// Useful when you need to map a user's sign in request according
// to different rules that can't use email domains.
let session = try await supabase.auth.signInWithSSO(
.providerID(UUID(uuidString: "21648a9d-8d5a-4555-a9d1-d6375dc14e92")!)
)