Kotlin: Sign in a user through OAuth

Parameters

Examples

Sign in using a third-party provider

supabase.auth.signInWith(Github)

Sign in using a third-party provider with scopes

supabase.auth.signInWith(Github) \{
    scopes.add("email")
\}

Create a custom url

val url = supabase.auth.getOAuthUrl(Github, redirectUrl = "https://example.com")

Create a custom url with scopes

val url = supabase.auth.getOAuthUrl(Github, redirectUrl = "https://example.com") \{
    scopes.add("email")
\}