PasskeyService

Flutter submodule for WebAuthn passkey operations.

Handles:

  • Passkey registration (WebAuthn create credential)

  • Passkey authentication (WebAuthn get assertion)

  • PRF extension support checking

After successful registration/authentication, credentials are stored in CredentialRegistry and tokens are stored in secure storage.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Authenticate with an existing passkey via WebAuthn ceremony.

Link copied to clipboard
suspend fun isPrfSupported(): Result<Boolean>

Check if PRF extension is supported on this platform.

Link copied to clipboard
suspend fun register(displayName: String? = null): Result<CredentialInfo>

Register a new passkey via WebAuthn ceremony.