Giter Club home page Giter Club logo

Comments (4)

jfornear avatar jfornear commented on June 12, 2024

I think I need to set up a custom user model.

from django-rest-framework-passwordless.

jfornear avatar jfornear commented on June 12, 2024

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.

from django-rest-framework-passwordless.

jfornear avatar jfornear commented on June 12, 2024

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.

from django-rest-framework-passwordless.

jfornear avatar jfornear commented on June 12, 2024

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.

from django-rest-framework-passwordless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.