| Module | Devise::Models::TwoFactorBackupable |
| In: |
lib/devise_two_factor/models/two_factor_backupable.rb
|
TwoFactorBackupable allows a user to generate backup codes which provide one-time access to their account in the event that they have lost access to their two-factor device
1) Invalidates all existing backup codes 2) Generates otp_number_of_backup_codes backup codes 3) Stores the hashed backup codes in the database 4) Returns a plaintext array of the generated backup codes