Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example passwordless app using SMS for login and account creation #139

Closed
mroushdy opened this issue Apr 7, 2020 · 1 comment
Closed

Comments

@mroushdy
Copy link

mroushdy commented Apr 7, 2020

I am building an app that is passwordless. The only method of signing up and login is by entering a phone number and verifying that number with a code. I am pulling my hair trying to figure out how to do it with this app. Can anyone please give guidance on how to implement this?

@claustres
Copy link
Collaborator

Actually the way you can send a verification code is pretty similar to the way you can send a verification email. You can find some articles like https://blog.feathersjs.com/how-to-setup-email-verification-in-feathersjs-72ce9882e744 about how to implement a custom notifier doing so.

It should not be too much complex to replace sending an email containing the verification code by sending a SMS with your API or thrid-party service. However in your case you should use the "short" token versions of the service operations instead of the "long" one usually used in emails.

However I am afraid that your use case is not completely covered out-of-the-box because this module relies on the presence of a password with a dedicated reset operation for instance. But I think you should be able to rely on verifySignupShort and resendVerifySignup to perform it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants