Kotlin: Sign in a user through OAuth

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")
\}