Module Devise::Models::TwoFactorAuthenticatable
In: lib/devise_two_factor/models/two_factor_authenticatable.rb

Methods

Included Modules

Devise::Models::DatabaseAuthenticatable

Classes and Modules

Module Devise::Models::TwoFactorAuthenticatable::ClassMethods

Public Class methods

Public Instance methods

ROTP‘s TOTP#timecode is private, so we duplicate it here

This defaults to the model‘s otp_secret If this hasn‘t been generated yet, pass a secret as an option

Protected Instance methods

An OTP cannot be used more than once in a given timestep Storing timestep of last valid OTP is sufficient to satisfy this requirement

[Validate]