FirebaseAuth Framework Reference Stay organized with collections Save and categorize content based on your preferences.
FIRTOTPSecret
@interfaceFIRTOTPSecret:NSObjectReturns the shared secret key/seed used to generate time-based one-time passwords.
Declaration
Objective-C
-(nonnullNSString*)sharedSecretKey;Returns a QRCode URL as described inhttps://github.com/google/google-authenticator/wiki/Key-Uri-FormatThis can be displayed to the user as a QRCode to be scanned into a TOTP app like GoogleAuthenticator.
Declaration
Objective-C
-(nonnullNSString*)generateQRCodeURLWithAccountName:(nonnullNSString*)accountNameissuer:(nonnullNSString*)issuer;Parameters
accountNamethe name of the account/app.
issuerissuer of the TOTP(likely the app name).Returns A QRCode URL string.
Opens the specified QR Code URL in a password manager like iCloud Keychain.
Declaration
Objective-C
-(void)openInOTPAppWithQRCodeURL:(nonnullNSString*)QRCodeURL;
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 2023-12-05 UTC.