Data Layer medium complexity backend
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Data layer responsible for persisting and retrieving FIDO2 public key credentials. Stores credential IDs, public keys, sign counts, and transports per user in the PostgreSQL database, supporting multiple passkeys per account for cross-device usage.

Feature: Authentication Methods (Passkeys)

passkey-credential-store

Responsibilities

  • Store WebAuthn public key credentials with associated metadata per user
  • Retrieve credentials by user ID or credential ID for authentication ceremonies
  • Track sign counts to detect cloned authenticators
  • Support multiple passkeys per user account for cross-device scenarios

Interfaces

saveCredential(userId, credential)
getCredentialById(credentialId)
getCredentialsByUserId(userId)
updateSignCount(credentialId, newCount)
deleteCredential(credentialId)
countUserCredentials(userId)

Relationships

Dependents (1)

Components that depend on this component