Closed jfornear closed 9 months ago
I think I need to set up a custom user model.
I added the custom user model and now get this error:
Server response data: {"detail": "Unable to send you a login code. Try again later."}
I think I need to wait for my Twilio campaign to be approved and look at my Twilio config.
I added this to my settings.py since I'm using dotenv locally:
os.environ['TWILIO_ACCOUNT_SID'] = config['TWILIO_ACCOUNT_SID']
os.environ['TWILIO_AUTH_TOKEN'] = config['TWILIO_AUTH_TOKEN']
And it seems to be working:
{"detail": "We texted you a login code."}
I see the codes in my database, but I'm not getting any texts on my phone yet.
Twilio logs show this error:
(Error: 30034) US A2P 10DLC - Message from an Unregistered Number
From the docs:
You are sending messages to the US using a US 10DLC number that is not associated with an approved A2P 10DLC Campaign.
I think I just need to wait for my campaign to be approved by Twilio.
When I try to get an auth token for a valid mobile number like this:
I get this error:
Email works fine.
I think this error could be improved to be more clear what the issue is.