LaunchingSignInState

class LaunchingSignInState(scope: CoroutineScope, block: suspend () -> Unit) : SignInState

Shared SignInState implementation used by the provider modules: runs block in scope, guarding against concurrent launches and driving isInProgress. block reads its parameters through rememberUpdatedState-backed properties, so values current at launch time are used even when the caller recomposes with new arguments.

Constructors

Link copied to clipboard
constructor(scope: CoroutineScope, block: suspend () -> Unit)

Properties

Link copied to clipboard
open override var isInProgress: Boolean

True while a sign-in flow started by launch is still running.

Functions

Link copied to clipboard
open override fun launch()

Starts the sign-in flow. Calls while a flow is already in progress are ignored, so a fast double-tap cannot start two flows.