Passwordless Login with Nexmo Verify
A Sinatra (Ruby) app showing how to implement passwordless login and registration using the Nexmo Verify API.
# clone this repository git clone email@example.com:Nexmo/ruby-passwordless-login.git # change to folder cd ruby-passwordless-login # install dependencies bundle install # create a .env cp .env.example .env
Next you will need to sign up for a Nexmo account and get your API credentials from the API dashboard and put them in your
Finally all that's left is to start the server.
Once your server is started:
- Visit localhost:4567
- Fill in your phone number without any leading 0's or +'s (e.g.
- You will receive a code in seconds, fill this in on the second form and submit
- You will now be logged in
As this is a very simple starter app this app does not do any user verification against a database. It does show you how to ensure the verification was a success and how to catch any errors that may occur when trying to create or verify a verification request.
This project is licensed under the MIT license.