Python: Update a user

Examples

Update the email for an authenticated user

response = supabase.auth.update_user(\{
  "email": "new@email.com"
\})

Update the phone number for an authenticated user

response = supabase.auth.update_user(\{
  "phone": "123456789"
\})

Update the password for an authenticated user

response = supabase.auth.update_user(\{
  "password": "new password"
\})

Update the user's metadata

response = supabase.auth.update_user(\{
  "data": \{ "hello": "world" \}
\})

Update the user's password with a nonce

response = supabase.auth.update_user(\{
  "password": "new password",
  "nonce": "123456"
\})