Service Layer medium complexity frontendmobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Orchestrates the lifecycle of passkey credentials across registration, authentication, listing, and deletion. Acts as the authoritative in-app coordinator between the UI, the WebAuthn ceremony services, and the credential repository.

Feature: Passkeys (WebAuthn)

passkey-credential-manager

Sources & reasoning

Passkeys are not explicitly mentioned in the source documentation. The feature is required by the authoritative blueprint which assigns it to Authentication & Access Control at v1.1. Target release v1.1 follows the blueprint's phase assignment; no earlier phase evidence exists in the source doc, and the feature is clearly post-BankID/Vipps (Fase 2) in any logical delivery sequence.

No source references — this artifact was included based on reasoning alone (see above).

Responsibilities

  • Coordinate registration and authentication ceremonies
  • Maintain in-memory credential availability cache
  • Propagate deletions to both local repository and backend
  • Emit state events for UI reactivity

Interfaces

getStoredCredentials(): Promise<PasskeyCredential[]>
deleteCredential(credentialId: string): Promise<void>
onCredentialRegistered(credential: PasskeyCredential): void