FirebaseAuth Framework Reference Stay organized with collections Save and categorize content based on your preferences.
FIRMultiFactor
@interfaceFIRMultiFactor:NSObjectThe interface defining the multi factor related properties and operations pertaining to a user. This class is available on iOS only.
Undocumented
Declaration
Objective-C
@property(nonatomic,readonly)NSArray<FIRMultiFactorInfo*>*enrolledFactorsGet a session for a second factor enrollment operation.
Declaration
Objective-C
-(void)getSessionWithCompletion:(nullablevoid(^)(FIRMultiFactorSession*_Nullable,NSError*_Nullable))completion;Parameters
completionA block with the session identifier for a second factor enrollment operation.This is used to identify the current user trying to enroll a second factor.
Enrolls a second factor as identified by the
MultiFactorAssertionparameter for the current user.Declaration
Objective-C
-(void)enrollWithAssertion:(nonnullFIRMultiFactorAssertion*)assertiondisplayName:(nullableNSString*)displayNamecompletion:(nullablevoid(^)(NSError*_Nullable))completion;Parameters
displayNameAn optional display name associated with the multi factor to enroll.
completionThe block invoked when the request is complete, or fails.
Unenroll the given multi factor.
Declaration
Objective-C
-(void)unenrollWithInfo:(nonnullFIRMultiFactorInfo*)factorInfocompletion:(nullablevoid(^)(NSError*_Nullable))completion;Parameters
completionThe block invoked when the request to send the verification email is complete,or fails.
Unenroll the given multi factor.
Declaration
Objective-C
-(void)unenrollWithFactorUID:(nonnullNSString*)factorUIDcompletion:(nullablevoid(^)(NSError*_Nullable))completion;Parameters
completionThe block invoked when the request to send the verification email is complete,or fails.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-05-04 UTC.