aaronn / django-rest-framework-passwordless

Passwordless Auth for Django REST Framework
MIT License
708 stars 153 forks source link

Feature Request: Resend code feature? #73

Open Goutam192002 opened 4 years ago

Goutam192002 commented 4 years ago

I think this is important feature.

Consider a scenario where the user wants to verify his number but he didn't receive code over SMS. Shouldn't there be a resend code option for the user.

Would be more than happy to contribute :)

aaronn commented 3 years ago

I have the same need but I've just been triggering the same auth endpoint to resend another. Do you see any benefit to a separate endpoint?

Goutam192002 commented 3 years ago

I'm assuming this results in new verification codes being generated every time, which is not ideal. It should just resend the same verification code until it expires.