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

SMS verification for mobile signup. #358

Closed MussieT closed 1 year ago

MussieT commented 1 year ago

Feature Description

When running the mobile_signup mutation, the phone number has to be verified via SMS with providers like Twilio as described in issue #306

Describe the solution you'd like

Steps.

  1. The SMS provider is configurable from an environment variable.
  2. The user will receive an SMS with a code.
  3. The user will send a code. Then if it's not correct, the user will not sign in.

(I have started working on it and will submit a PR very soon - with Twilio)

lakhansamani commented 1 year ago

Thanks @MussieT i had plans for this but thanks for putting up the issue will work on this sooner

MussieT commented 1 year ago

Hi, @lakhansamani I have created one separate model for smsVerificationRequests, and since it affects the databases can I submit a PR for this issue providing support for the SQL databases and MongoDB for the time being?

lakhansamani commented 1 year ago

Sure I can add support for other dbs

lakhansamani commented 1 year ago

@MussieT after taking a deep look into this PR, I have decide to merge SMSVerficiation code into OTP model itself as we don't need 2 models for managing this!

I have started working on this migration #368, mostly will be done by end of this week.

MussieT commented 1 year ago

@lakhansamani I wasn't able to actively to work on issues due to different personal factors, but I appreciate the mention.