Python: Verify and log in through OTP

Parameters

Examples

Verify Signup One-Time Password (OTP)

response = supabase.auth.verify_otp(
  \{"email": "email@example.com", "token": "123456", "type": "email"\}
)

Verify SMS One-Time Password (OTP)

response = supabase.auth.verify_otp(
  \{"phone": "+13334445555", "token": "123456", "type": "sms"\}
)

Verify Email Auth (Token Hash)

response = supabase.auth.verify_otp(
  \{"email": "email@example.com", "token_hash": "<token-hash>", "type": "email"\}
)