How to write a custom authentication backend in Django taking scenario as Phone Number & OTP(One-Time Password) to authenticate against each user.
How to authenticate each user in form of multiple conditions.
- If email is verified and password exist ( authenticate using email and password).
- If phone is verified and exist( authenticate using phone and otp or if password exist then auth using phone and password).