I’m building a Django Rest Framework (DRF) application and I need to implement dual authentication, allowing users to sign in using either their email or mobile number. What is the best approach to implement this?
I’ve already set up the authentication system using email, but now I need to extend it to support mobile number authentication as well. Should I create a custom authentication backend, or is there a DRF package that can help me achieve this more easily?
I’d appreciate any advice or examples on how to implement dual authentication in DRF. Thank you!