authorizerdev / authorizer

Your data, your control. Fully open source, authentication and authorization. No lock-ins. Deployment in Railway in 120 seconds || Spin a docker image as a micro-service in your infra. Built in login page and Admin panel out of the box.
https://authorizer.dev
MIT License
1.61k stars 165 forks source link

Why does separate endpoints exist for mobile and email login/signup? #381

Closed miqe closed 1 year ago

miqe commented 1 year ago

Feature Description

I don't see the point for mobile and email signup endpoints to exists while using the same input? Similarly, for the login, except from phone_email/email every other fields are the same.

Describe the solution you'd like

I've seen the OTP email/phone verification implementation and its is better to check if phone_number or email is present on the input and proceed to the respective process.

Additional context

Should forget_password for mobile be implemented with separate endpoint or different fields but within one input, similar like OTP verification?

lakhansamani commented 1 year ago

Agreed we can optimize that @miqe would you like to work on that optimization?