If you've associated an email domain to the identity provider, you can use the SSO.withDomain() function in the loginWith method 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 SSO.withProviderId function. For example:
Mapping specific user email addresses with an identity provider.
Using different hints to identity the identity provider to be used by the user, like a company-specific page, IP address or other tracking information.
To learn how to handle OTP links & OAuth refer to initializing
Examples
Sign in with email domain
// You can extract the user's email domain and use it to trigger the
// authentication flow with the correct identity provider.
supabase.gotrue.loginWith(SSO.withDomain("company.com"))
//the url was opened automatically, if you don't want that, provide a custom redirect url
Sign in with provider UUID
// Useful when you need to map a user's sign in request according
// to different rules that can't use email domains.
supabase.gotrue.loginWith(SSO.withProvider("21648a9d-8d5a-4555-a9d1-d6375dc14e92"))
//the url was opened automatically, if you don't want that, provide a custom redirect url