PasskeyClientOperations

Interface for passkey client operations.

This interface defines the contract for interacting with WebAuthn passkey authenticators. It allows dependency injection of fake implementations for testing.

Implementations

  • PasskeyClient - Real platform-specific implementation (Android/iOS)

  • FakePasskeyClient - Test fake for unit tests

Usage

Services that need passkey operations should accept this interface:

class BackupEncryption(
private val passkeyClient: PasskeyClientOperations? = null,
)

For testing:

val fakeClient = FakePasskeyClient(config)
val encryption = BackupEncryption(passkeyClient = fakeClient)

Functions

Link copied to clipboard

Creates a new passkey credential using the platform authenticator.

Link copied to clipboard

Gets an assertion (authenticates) using an existing passkey.

Link copied to clipboard

Gets an assertion with PRF extension for key derivation.