Python: Sign in a user through OTP

Parameters

Examples

Sign in with email

response = supabase.auth.sign_in_with_otp(
    \{
        "email": "email@example.com",
        "options": \{
            "email_redirect_to": "https://example.com/welcome",
        \},
    \}
)

Sign in with SMS OTP

response = supabase.auth.sign_in_with_otp(
    \{"phone": "+13334445555"\}
)

Sign in with WhatsApp OTP

response = supabase.auth.sign_in_with_otp(
    \{
        "phone": "+13334445555",
        "options": \{
            "channel": "whatsapp",
        \},
    \}
)