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.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unenroll(
{String? factorUid, MultiFactorInfo? multiFactorInfo}) → Future< void> - Unenrolls a second factor from this user.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited