FirebaseAuth Framework Reference

FIRPhoneMultiFactorGenerator


@interface FIRPhoneMultiFactorGenerator : NSObject

The data structure used to help initialize an assertion for a second factor entity to the Firebase Auth/CICP server. Depending on the type of second factor, this will help generate the assertion. This class is available on iOS only.

  • Initializes the MFA assertion to confirm ownership of the phone second factor. Note that this API is used for both enrolling and signing in with a phone second factor.

    Declaration

    Objective-C

    + (nonnull FIRPhoneMultiFactorAssertion *)assertionWithCredential:
        (nonnull FIRPhoneAuthCredential *)phoneAuthCredential;

    Parameters

    phoneAuthCredential

    The phone auth credential used for multi factor flows.