TotpSecret

actual interface TotpSecret(source)

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

The iOS SDK exposes only the shared secret, the QR code URL and the OTP app hand-off: on Apple platforms the hash algorithm and the code length are read from the QR code URL, and codeIntervalSeconds, enrollmentCompletionDeadline and sessionInfo throw UnsupportedOperationException. The JS SDK keeps the session private, so sessionInfo throws there too.

actual interface TotpSecret(source)

The iOS SDK's FIRTOTPSecret exposes the shared secret, the QR code URL and the OTP app hand-off only: the hash algorithm and the code length are read from the QR code URL, and the other parameters throw. The iOS SDK provides TOTP on iOS only; on tvOS no secret can be generated.

expect interface TotpSecret(source)

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

The iOS SDK exposes only the shared secret, the QR code URL and the OTP app hand-off: on Apple platforms the hash algorithm and the code length are read from the QR code URL, and codeIntervalSeconds, enrollmentCompletionDeadline and sessionInfo throw UnsupportedOperationException. The JS SDK keeps the session private, so sessionInfo throws there too.

actual interface TotpSecret(source)

The JS SDK's TotpSecret has every parameter but the session, which it keeps private.

actual interface TotpSecret(source)

The JS SDK's TotpSecret has every parameter but the session, which it keeps private.

Properties

Link copied to clipboard
actual abstract val codeIntervalSeconds: Int

How often the one-time passwords change, in seconds. Throws UnsupportedOperationException on Apple platforms.

actual abstract val codeIntervalSeconds: Int

Throws UnsupportedOperationException: the iOS SDK does not expose the interval.

expect abstract val codeIntervalSeconds: Int

How often the one-time passwords change, in seconds. Throws UnsupportedOperationException on Apple platforms.

actual abstract val codeIntervalSeconds: Int

How often the one-time passwords change, in seconds. Throws UnsupportedOperationException on Apple platforms.

actual abstract val codeIntervalSeconds: Int

How often the one-time passwords change, in seconds. Throws UnsupportedOperationException on Apple platforms.

Link copied to clipboard
actual abstract val codeLength: Int

The number of digits of the one-time passwords.

actual abstract val codeLength: Int

The digits of the QR code URL, where the iOS SDK exposes it.

expect abstract val codeLength: Int

The number of digits of the one-time passwords.

actual abstract val codeLength: Int

The number of digits of the one-time passwords.

actual abstract val codeLength: Int

The number of digits of the one-time passwords.

Link copied to clipboard
actual abstract val enrollmentCompletionDeadline: Long

When the enrollment has to be completed by, in seconds since the epoch. Throws UnsupportedOperationException on Apple platforms.

actual abstract val enrollmentCompletionDeadline: Long

Throws UnsupportedOperationException: the iOS SDK does not expose the deadline.

expect abstract val enrollmentCompletionDeadline: Long

When the enrollment has to be completed by, in seconds since the epoch. Throws UnsupportedOperationException on Apple platforms.

actual abstract val enrollmentCompletionDeadline: Long

When the enrollment has to be completed by, in seconds since the epoch. Throws UnsupportedOperationException on Apple platforms.

actual abstract val enrollmentCompletionDeadline: Long

When the enrollment has to be completed by, in seconds since the epoch. Throws UnsupportedOperationException on Apple platforms.

Link copied to clipboard
actual abstract val hashAlgorithm: String

The hash algorithm of the one-time passwords, such as SHA1.

actual abstract val hashAlgorithm: String

The algorithm of the QR code URL, where the iOS SDK exposes it.

expect abstract val hashAlgorithm: String

The hash algorithm of the one-time passwords, such as SHA1.

actual abstract val hashAlgorithm: String

The hash algorithm of the one-time passwords, such as SHA1.

actual abstract val hashAlgorithm: String

The hash algorithm of the one-time passwords, such as SHA1.

Link copied to clipboard
actual abstract val sessionInfo: String

The session of the enrollment, which the SDK sends back with the one-time password. Android only: throws UnsupportedOperationException on Apple platforms, JS and Wasm, whose SDKs keep it private.

actual abstract val sessionInfo: String

Throws UnsupportedOperationException: the iOS SDK keeps the session private.

expect abstract val sessionInfo: String

The session of the enrollment, which the SDK sends back with the one-time password. Android only: throws UnsupportedOperationException on Apple platforms, JS and Wasm, whose SDKs keep it private.

actual abstract val sessionInfo: String

Throws UnsupportedOperationException: the JS SDK keeps the session private.

actual abstract val sessionInfo: String

Throws UnsupportedOperationException: the JS SDK keeps the session private.

Link copied to clipboard
actual abstract val sharedSecretKey: String

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

actual abstract val sharedSecretKey: String

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

expect abstract val sharedSecretKey: String

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

actual abstract val sharedSecretKey: String

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

actual abstract val sharedSecretKey: String

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

Functions

Link copied to clipboard
actual abstract fun generateQrCodeUrl(): String

A URL of a QR code the authenticator app can scan, for the signed-in user's email at the app's name, as generateQrCodeUrl(email, app.name). It fails without a signed-in user with an email, except on JS and Wasm, where the JS SDK names the account unknownuser then.

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

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

actual abstract fun generateQrCodeUrl(): String

A URL of a QR code the authenticator app can scan, for the signed-in user's email at the app's name, as generateQrCodeUrl(email, app.name). It fails without a signed-in user with an email, except on JS and Wasm, where the JS SDK names the account unknownuser then.

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

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

expect abstract fun generateQrCodeUrl(): String

A URL of a QR code the authenticator app can scan, for the signed-in user's email at the app's name, as generateQrCodeUrl(email, app.name). It fails without a signed-in user with an email, except on JS and Wasm, where the JS SDK names the account unknownuser then.

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

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

actual abstract fun generateQrCodeUrl(): String

A URL of a QR code the authenticator app can scan, for the signed-in user's email at the app's name, as generateQrCodeUrl(email, app.name). It fails without a signed-in user with an email, except on JS and Wasm, where the JS SDK names the account unknownuser then.

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

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

actual abstract fun generateQrCodeUrl(): String

A URL of a QR code the authenticator app can scan, for the signed-in user's email at the app's name, as generateQrCodeUrl(email, app.name). It fails without a signed-in user with an email, except on JS and Wasm, where the JS SDK names the account unknownuser then.

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

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

Link copied to clipboard
actual abstract fun openInOtpApp(qrCodeUrl: String)

Opens qrCodeUrl in the authenticator app.

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

Android only: opens qrCodeUrl in an authenticator app from activity, or fallbackUrl when none is installed.

actual abstract fun openInOtpApp(qrCodeUrl: String)

Opens qrCodeUrl in the authenticator app.

expect abstract fun openInOtpApp(qrCodeUrl: String)

Opens qrCodeUrl in the authenticator app.

actual abstract fun openInOtpApp(qrCodeUrl: String)

Opens qrCodeUrl in the authenticator app.

actual abstract fun openInOtpApp(qrCodeUrl: String)

Opens qrCodeUrl in the authenticator app.