Try it out!

Run your application:

rails server

Visit http://localhost:3000. If you're still logged in, log out.

A verification code will be sent to you via SMS:

Verification code sent

The following page displays:

Enter verification code

Enter the code you received and you will be logged in:

Successful verification

Two-factor authentication for security and spam prevention

Learn how to implement 2fa in your Ruby applications

Steps
1
Introduction
2
Create the basic application
3
Require a phone number
4
Send the verification request
5
Check the verification code
6
Try it out!