MfaChallenge class

A login that stopped halfway because the account has MFA enabled.

The pendingToken is a short lived token (minutes) that only authorizes the v1/auth/mfa/* endpoints. It is deliberately not a session: it is never persisted and carries no access to anything else.

Constructors

MfaChallenge({required String pendingToken, required List<MfaMethod> methods})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
methods → List<MfaMethod>
final
pendingToken → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportsRecoveryCode → bool
no setter
supportsWebAuthn → bool
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromLoginJson(Map<String, dynamic> json) → MfaChallenge?
Reads the challenge out of a login response that came back with mfaPending: true. Returns null for a normal, completed login.