CredentialService

Flutter submodule for credential registry management.

Provides query and mutation operations for registered WebAuthn credentials:

  • List all credentials

  • Get PRF-capable credentials (for backup)

  • Set default credential

  • Revoke/delete credentials

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
suspend fun deleteCredential(credentialId: String): Result<Boolean>

Permanently delete a credential from the registry. This cannot be undone.

Link copied to clipboard

Get all registered credentials.

Link copied to clipboard

Get the default credential for authentication.

Link copied to clipboard

Get only PRF-capable credentials. These are the credentials that can be used for backup encryption.

Link copied to clipboard
suspend fun revokeCredential(credentialId: String): Result<Boolean>

Revoke a credential. Revoked credentials cannot be used for authentication or backup. The credential is NOT deleted - it remains in the registry with REVOKED status.

Link copied to clipboard
suspend fun setDefaultCredential(credentialId: String): Result<Boolean>

Set a credential as the default for authentication.