A Rails (Ruby) app showing how to implement two-factor authentication using the Nexmo Verify API.
# clone this repository
git clone git@github.com:Nexmo/ruby-2fa.git
# change to folder
cd ruby-2fa
# 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 .env
file.
Finally all that's left is to start the server.
rails server
This app shows you how to secure your app login with two-factor authentication using Rails, Ruby and Nexmo Verify.
Once your server is started:
445555666777
)This project is licensed under the MIT license.