PasskeySignInState

Headless passkey sign-in state for custom UI. Create it with rememberPasskeySignIn.

Call signIn from a coroutine (for example one launched from rememberCoroutineScope() in a click handler) and drive your UI from isRunning and lastError, which are Compose state and trigger recomposition.

Double taps are safe: a signIn call made while another one is running does not start a second system sheet; it waits for the running request and returns the same result.

Properties

Link copied to clipboard

True while a sign-in request (fetching options plus the system sheet) is in flight.

Link copied to clipboard

The error of the most recent finished signIn, or null if it succeeded or the user cancelled.

Functions

Link copied to clipboard

Fetches the request options from your server, then shows the system passkey sheet.