Kotlin: Sign in a user

Logs in an existing user.

Examples

Sign in with email and password

supabase.gotrue.loginWith(Email) \{
    email = "example@email.com"
    password = "example-password"
\}

Sign in with phone and password

supabase.gotrue.loginWith(Phone) \{
    phoneNumber = "+4912345679"
    password = "example-password"
\}

Sign in with id token

supabase.gotrue.loginWith(IDToken) \{
    idToken = "token"
    provider = Google //Also supported: Apple, Azure and Facebook
    //optional:
    nonce = "nonce"
    data = buildJsonObject \{
        //...
    \}
\}