TotpSecret

actual interface TotpSecret(source)
expect interface TotpSecret(source)

A TOTP secret to enroll an authenticator app with, mirroring com.google.firebase.auth.TotpSecret.

Not mirrored: the secret's parameters and session, which the iOS SDK does not expose (see api/android-sdk/exclusions.txt).

actual interface TotpSecret(source)
actual interface TotpSecret(source)

Properties

Link copied to clipboard
abstract val codeIntervalSeconds: Int

Android only.

abstract val codeIntervalSeconds: Int

Android only.

Link copied to clipboard
abstract val codeLength: Int

Android only.

abstract val codeLength: Int

Android only.

Link copied to clipboard

Android only.

Android only.

Link copied to clipboard
abstract val hashAlgorithm: String

Android only.

abstract val hashAlgorithm: String

Android only.

Link copied to clipboard
abstract val sessionInfo: String

Android only.

abstract val sessionInfo: String

Android only.

Link copied to clipboard
actual abstract val sharedSecretKey: String
expect abstract val sharedSecretKey: String

The shared secret, to enter in the authenticator app by hand.

actual abstract val sharedSecretKey: String
actual abstract val sharedSecretKey: String

Functions

Link copied to clipboard
abstract fun generateQrCodeUrl(): String

Android only.

actual abstract fun generateQrCodeUrl(accountName: String, issuer: String): String
expect abstract fun generateQrCodeUrl(accountName: String, issuer: String): String

A URL of a QR code the authenticator app can scan, for accountName at issuer.

abstract fun generateQrCodeUrl(): String

Android only.

actual abstract fun generateQrCodeUrl(accountName: String, issuer: String): String
actual abstract fun generateQrCodeUrl(accountName: String, issuer: String): String
Link copied to clipboard
actual abstract fun openInOtpApp(qrCodeUrl: String)
abstract fun openInOtpApp(qrCodeUrl: String, fallbackUrl: String, activity: Activity)

Android only.

expect abstract fun openInOtpApp(qrCodeUrl: String)

Opens qrCodeUrl in the authenticator app.

actual abstract fun openInOtpApp(qrCodeUrl: String)
abstract fun openInOtpApp(qrCodeUrl: String, fallbackUrl: String, activity: Activity)

Android only.

actual abstract fun openInOtpApp(qrCodeUrl: String)