Instantly share code, notes, and snippets.
Install rotp gem
In my case I am using an user model to add google 2fa.