struct

KemalIdentity::MFA::Verified

Inherits Struct < Value < Object

A second factor was proved.

Constructors

new(factor : Factor | Nil = nil, by_recovery_code : Bool = false)
Source

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.

Source
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.

Source