feat(auth): support login via BookID/password or Phone/password
Title feat(auth): support login via BookID/password or Phone/password
Description This merge request enhances the patient authentication flow by introducing multiple login options.
Users will now be able to authenticate using either:
- BookID and password, or
- Phone number and password
To support this feature, we are updating the relevant authentication API endpoints like forgot password and login api's to handle flexible credential inputs while maintaining proper validation and security checks.
Key Updates
- Modified login endpoint logic to accept and validate two credential types
- Updated request handling to dynamically identify login method
- Ensured consistent response structure across both flows
- Preserved existing security mechanisms and error handling
Any required modifications or enhancements will be committed under this MR. Further updates will follow after implementation and validation.
Edited by Madavarapu Sai Harshavardhan