supabase / auth-py

Python client implementation for Supabase Auth
MIT License
76 stars 40 forks source link

Twilio Verify Phone Signup - Error sending confirmation sms: Invalid parameter 'To' #543

Open JeremyBrent opened 4 months ago

JeremyBrent commented 4 months ago

Bug report

Describe the bug

Using Twilio Verify for SMS Phone User Signup produces the error User signup AuthApiError error status: 422, message: Error sending confirmation sms: Invalid parameter 'To': +{number} More information: https://www.twilio.com/docs/errors/60200

To Reproduce

resp = await supabase.auth.sign_up(
            credentials={'phone': f'+{user.phone}' if '+' not in user.phone else user.phone,
                         'password': user.password,
                         'options': {
                             'data': {
                                 'first_name': user.first_name,
                                 'last_name': user.last_name},
                             'channel': 'sms'
                             }
                         })

System information