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
Verification code sent

The following page displays:

Enter verification code
Enter verification code

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

Successful verification
Successful verification


Two-factor authentication for security and spam prevention

Learn how to implement 2fa in your Ruby applications



Steps