MultiFactor class

Defines multi-factor related properties and operations pertaining to a User. This class acts as the main entry point for enrolling or un-enrolling second factors for a user, and provides access to their currently enrolled factors.


hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


enroll(MultiFactorAssertion assertion, {String? displayName}) Future<void>
Enrolls a second factor as identified by the MultiFactorAssertion parameter for the current user.
getEnrolledFactors() Future<List<MultiFactorInfo>>
Returns a list of the MultiFactorInfo already associated with this user.
getSession() Future<MultiFactorSession>
Returns a session identifier for a second factor enrollment operation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.
unenroll({String? factorUid, MultiFactorInfo? multiFactorInfo}) Future<void>
Unenrolls a second factor from this user.


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