PhoneVerificationState

Where a phone number is in the verification flow.

This is the whole observable surface of verification: a host that supplies its own OTP screen can drive it from these states and ignore the library's UI entirely.

Inheritors

Types

Link copied to clipboard
data class CodeSent(val verificationId: String, val destination: String, val resendAvailableAtMillis: Long? = null) : PhoneVerificationState

A code was sent and the user is expected to enter it.

Link copied to clipboard

The challenge timed out. The user must request a new code.

Link copied to clipboard
data class Failed(val message: UiText, val verificationId: String? = null, val retryable: Boolean = true) : PhoneVerificationState

A step failed. The user can act again.

Link copied to clipboard

Nothing started, or the number changed and any prior verification was invalidated.

Link copied to clipboard

A code request is in flight. Duplicate requests are rejected while in this state.

Link copied to clipboard
data class Verified(val e164Number: String) : PhoneVerificationState

The number is verified.

Link copied to clipboard
data class Verifying(val verificationId: String) : PhoneVerificationState

A submitted code is being checked.

Properties

Link copied to clipboard

The active challenge id, if any.

Link copied to clipboard

True while a network call is in flight, for progress indicators and input blocking.