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.
Creates a TOTP secret as part of enrolling a TOTP second factor. Used for generating a
QR code URL or inputting into a TOTP app. This method uses the auth instance corresponding
to the user in the multiFactorSession.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-11 UTC."],[],[],null,["TOTPMultiFactorGenerator \n\n @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)\n @objc(FIRTOTPMultiFactorGenerator)\n open class TOTPMultiFactorGenerator : NSObject\n\nThe data structure used to help initialize an assertion for a second factor entity to the\nFirebase Auth/CICP server. Depending on the type of second factor, this will help generate\nthe assertion.\n\nThis class is available on iOS only.\n- `\n ``\n ``\n `\n\n [generateSecret(with:completion:)](#/c:@M@FirebaseAuth@objc(cs)FIRTOTPMultiFactorGenerator(cm)generateSecretWithMultiFactorSession:completion:)`\n ` \n Creates a TOTP secret as part of enrolling a TOTP second factor. Used for generating a\n QR code URL or inputting into a TOTP app. This method uses the auth instance corresponding\n to the user in the multiFactorSession. \n\n Declaration \n Swift \n\n @objc(generateSecretWithMultiFactorSession:completion:)\n open class func generateSecret(with session: ../Classes.html#/c:@M@FirebaseAuth@objc(cs)FIRMultiFactorSession,\n completion: @escaping (../Classes/TOTPSecret.html?, Error?) -\u003e Void)\n\n Parameters\n\n- `\n ``\n ``\n `\n\n [generateSecret(with:)](#/s:12FirebaseAuth24TOTPMultiFactorGeneratorC14generateSecret4withAA10TOTPSecretCAA05MultiD7SessionC_tYaKFZ)`\n ` \n Creates a TOTP secret as part of enrolling a TOTP second factor.\n\n Used for generating a QR code URL or inputting into a TOTP app. This\n method uses the auth instance correspondingto the user in the multiFactorSession. \n\n Declaration \n Swift \n\n @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)\n open class func generateSecret(with session: ../Classes.html#/c:@M@FirebaseAuth@objc(cs)FIRMultiFactorSession) async throws -\u003e ../Classes/TOTPSecret.html\n\n Parameters\n\n Return Value\n\n The TOTP secret.\n- `\n ``\n ``\n `\n\n [assertionForEnrollment(with:oneTimePassword:)](#/c:@M@FirebaseAuth@objc(cs)FIRTOTPMultiFactorGenerator(cm)assertionForEnrollmentWithSecret:oneTimePassword:)`\n ` \n Initializes the MFA assertion to confirm ownership of the TOTP second factor.\n\n This assertion is used to complete enrollment of TOTP as a second factor. \n\n Declaration \n Swift \n\n @objc(assertionForEnrollmentWithSecret:oneTimePassword:)\n open class func assertionForEnrollment(with secret: ../Classes/TOTPSecret.html,\n oneTimePassword: String) -\u003e ../Classes.html#/c:@M@FirebaseAuth@objc(cs)FIRTOTPMultiFactorAssertion\n\n Parameters\n\n Return Value\n\n The MFA assertion.\n- `\n ``\n ``\n `\n\n [assertionForSignIn(withEnrollmentID:oneTimePassword:)](#/c:@M@FirebaseAuth@objc(cs)FIRTOTPMultiFactorGenerator(cm)assertionForSignInWithEnrollmentID:oneTimePassword:)`\n ` \n Initializes the MFA assertion to confirm ownership of the TOTP second factor.\n\n This assertion is used to complete signIn with TOTP as a second factor. \n\n Declaration \n Swift \n\n @objc(assertionForSignInWithEnrollmentID:oneTimePassword:)\n open class func assertionForSignIn(withEnrollmentID enrollmentID: String,\n oneTimePassword: String) -\u003e ../Classes.html#/c:@M@FirebaseAuth@objc(cs)FIRTOTPMultiFactorAssertion\n\n Parameters\n\n Return Value\n\n The MFA assertion."]]