Webauthn and the future of 2FA Although this library will continue to be maintained, if you're implementing a 2FA solution today, you should take a look at Webauthn. It doesn't involve shared secrets and it's supported by most modern browsers and operating systems. Ruby resources for Webauthn Multi-Factor Authentication for Rails With WebAuthn and Devise Webauthn Ruby Gem Rails demo app with Webau