MfaModule class

Module managing multi-factor authentication (MFA) challenges and verification.

Constructors

MfaModule(SpJwtAuth auth)
Creates a new MfaModule.

Properties

auth → SpJwtAuth
The underlying authentication client.
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

challenge({required String challengeId, required String method}) → Future<Map<String, dynamic>>
Triggers a challenge delivery via method for challengeId.
listMethods({required String challengeId}) → Future<List<String>>
Lists available MFA challenge methods for challengeId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
verify({required String challengeId, required String code}) → Future<LoginResult>
Verifies second-factor code for challengeId and completes login.

Operators

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