summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types/src
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2021-02-02 14:13:48 -0800
committerMatthew Miller <matthew@millerti.me>2021-02-02 14:13:48 -0800
commit11da0b8118ae1124e868afd6ac25af164f4e698e (patch)
tree1972379d1f1c52913be536248a8a0286322ba1f8 /packages/typescript-types/src
parenta13caac4521a5bf2bc4dc5c45a4defbd33c5d0d8 (diff)
Update AuthenticatorDevice with more data
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r--packages/typescript-types/src/index.ts10
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;
};
/**