djangoflow / django-df-auth

Opinionated Django REST auth endpoints for JWT authentication and social accounts
MIT License
10 stars 19 forks source link

Creating OTP device throws 500 status code error #36

Closed adar2378 closed 1 year ago

adar2378 commented 1 year ago

I am trying to add OTPDevice but getting this error

image

Endpoint: POST /api/v1/auth/otp-device/

Payload:

{"type":"email"}

Not sending name as it should automatically use it from backend. Correct me if I am wrong.

I am not sure if the OTPDevice's name is a good idea to be used for requesting OTP. This flow looks ambiguous to me.

adar2378 commented 1 year ago

name should be email/phone