Skip to main content

Interface: WebAuthnCredential

Defined in: src/types/interfaces/webauthn.interface.ts:30

WebAuthn credential stored in database.

Properties

aaguid?

readonly optional aaguid: string

Defined in: src/types/interfaces/webauthn.interface.ts:83

AAGUID of the authenticator.

Remarks

Can be used to identify authenticator type.


counter

readonly counter: number

Defined in: src/types/interfaces/webauthn.interface.ts:53

Signature counter for replay detection.

Remarks

Incremented by authenticator on each use. If counter decreases, credential may be cloned.


createdAt

readonly createdAt: Date

Defined in: src/types/interfaces/webauthn.interface.ts:70

Credential creation timestamp.


credentialId

readonly credentialId: string

Defined in: src/types/interfaces/webauthn.interface.ts:34

Credential ID (base64url encoded).


did

readonly did: DID

Defined in: src/types/interfaces/webauthn.interface.ts:39

Associated user's DID.


lastUsedAt?

readonly optional lastUsedAt: Date

Defined in: src/types/interfaces/webauthn.interface.ts:75

Last authentication timestamp.


nickname?

readonly optional nickname: string

Defined in: src/types/interfaces/webauthn.interface.ts:65

User-provided nickname for the credential.

Example

"MacBook Touch ID", "YubiKey 5C"

publicKey

readonly publicKey: string

Defined in: src/types/interfaces/webauthn.interface.ts:44

COSE public key (base64url encoded).


transports?

readonly optional transports: readonly AuthenticatorTransport[]

Defined in: src/types/interfaces/webauthn.interface.ts:58

Credential transports.