Python: Verify and log in through OTP

Parameters

Examples

Verify Signup One-Time Password (OTP)

response = supabase.auth.verify_otp(
  \{"email": "[email protected]", "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 protected]", "token_hash": "<token-hash>", "type": "email"\}
)