KemalIdentity::MFA::Verified
A second factor was proved.
Constructors
Instance methods
by_recovery_code?
True when a single-use recovery code was spent rather than a code from an authenticator. Worth surfacing: it is the signal that somebody has lost their device, and the moment to prompt for re-enrolment.
factor
Which factor answered, or nil when a recovery code was spent — a recovery code belongs
to the account rather than to any one device, which is the point of having them.