basalt / auth/src / PasskeyCredential
Interface: PasskeyCredential
Defined in: auth/src/webauthn.ts:15
WebAuthn / passkeys ceremony orchestration. The framework owns everything that is NOT cryptography — issuing challenges, assembling the browser options, storing credentials, and the counter/clone check — and delegates the actual attestation/assertion verification to a pluggable WebAuthnVerifier (implement it over @simplewebauthn/server or similar). This keeps the framework free of a crypto dependency while still driving the full flow.
Properties
counter
> counter: number
Defined in: auth/src/webauthn.ts:22
Signature counter for clone detection.
createdAt
> createdAt: number
Defined in: auth/src/webauthn.ts:25
deviceName?
> optional deviceName?: string
Defined in: auth/src/webauthn.ts:24
id
> id: string
Defined in: auth/src/webauthn.ts:17
base64url credential id.
lastUsedAt?
> optional lastUsedAt?: number
Defined in: auth/src/webauthn.ts:26
publicKey
> publicKey: string
Defined in: auth/src/webauthn.ts:20
base64url COSE public key (opaque to the framework; the verifier reads it).
transports?
> optional transports?: string[]
Defined in: auth/src/webauthn.ts:23
userId
> userId: string
Defined in: auth/src/webauthn.ts:18