DVMfa class final

When a route or a backend function needs a second factor.

Declared where the risk is rather than at sign-in: a payout wants a recent second factor, a settings page wants one at some point, most pages want none.

Constructors

DVMfa.recent(Duration window)
Step-up: a second factor within window of now.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
within → Duration?
How recent the second factor must be, or null for "at some point in this session".
final

Methods

isSatisfiedBy(DVSession session, DateTime now) → bool
Whether session meets this requirement at now.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

none → const DVMfa
No second factor needed.
required → const DVMfa
A second factor at some point in this session.