Skip to content

Instantly share code, notes, and snippets.

@123ish
Created June 23, 2020 00:28
Show Gist options
  • Save 123ish/4cf02eda54f0602b26880131e9cec0ac to your computer and use it in GitHub Desktop.
Save 123ish/4cf02eda54f0602b26880131e9cec0ac to your computer and use it in GitHub Desktop.
How to implement two-factor authentication for Rails app by using Devise gem, Google authenticator, and ActiveModel::Otp gem - Gemfile
gem 'devise', '~> 4.7.1'
gem 'active_model_otp', '~> 2.0.1'
gem 'rqrcode', '~> 1.1.2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment