diff options
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r-- | packages/typescript-types/src/index.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index c950398..ef6ebcc 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -112,12 +112,16 @@ export interface AuthenticatorAssertionResponseJSON * A WebAuthn-compatible device and the information needed to verify assertions by it */ export type AuthenticatorDevice = { - publicKey: Base64URLString; - credentialID: Base64URLString; - // Number of times this device is expected to have been used + credentialPublicKey: Buffer; + credentialID: Buffer; + // Number of times this authenticator is expected to have been used counter: number; + // The random Buffer generated as user.id in attestation options + userHandle: Buffer; // From browser's `startAttestation()` -> AttestationCredentialJSON.transports (API L2 and up) transports?: AuthenticatorTransport[]; + // If desired, store the original value of response.attestationObject for later scrutiny + attestationObject?: Base64URLString; }; /** |