MfaRequiredException class
Thrown by AuthBackend.postLogin when username and password were correct
but the account needs a second factor.
This is not a failure: the caller is expected to catch it, run one of the
MfaChallenge.methods and finish the login with
AuthBackend.completeMfaWithWebAuthn or
AuthBackend.completeMfaWithRecoveryCode. It is modelled as an exception so
that postLogin keeps returning a usable session for every existing caller -
apps that never enable MFA are unaffected.
- Implemented types
Constructors
- MfaRequiredException(MfaChallenge challenge)
-
const
Properties
- challenge → MfaChallenge
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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