Passkey Credentials Repository
Component Detail
Data Layer
medium complexity
backend
0
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Persists server-side public key material for registered passkeys, linked to the users table. Supports multi-device passkey registration, credential lookup during assertion, and individual credential revocation.
passkey-credentials-repository
Responsibilities
- Store public key, credential ID, AAGUID, and sign counter per registered passkey
- Associate passkey records with the owning user and record device display name
- Retrieve credentials by credential ID for assertion verification
- Delete individual passkey records on user-initiated revocation
- List all active passkeys for a user ordered by creation date
Interfaces
save(credential: PasskeyCredentialRecord) -> void
findById(credentialId: string) -> PasskeyCredentialRecord | null
findAllByUserId(userId: string) -> List<PasskeyCredentialRecord>
updateSignCounter(credentialId: string, counter: number) -> void
delete(credentialId: string) -> void
Relationships
Dependents (2)
Components that depend on this component