Kotlin: Sign in a user through OAuth
- This method is used for signing in using a third-party provider.
- Supabase supports many different third-party providers.
- To learn how to handle OTP links & OAuth refer to initializing
Examples
Sign in using a third-party provider
supabase.gotrue.loginWith(Github)
Sign in using a third-party provider with scopes
supabase.gotrue.loginWith(Github) \{
scopes.add("email")
\}
Create a custom url
val url = supabase.gotrue.oAuthUrl(Github, redirectUrl = "https://example.com")
Create a custom url with scopes
val url = supabase.gotrue.oAuthUrl(Github, redirectUrl = "https://example.com") \{
scopes.add("email")
\}