From 925c837870e189dc592ad075c9055f6ccdc93e68 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sun, 25 Jun 2023 10:36:45 -0700 Subject: Update AuthenticatorAttestationResponseJSON --- packages/typescript-types/src/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'packages/typescript-types') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index b8b1394..29a99ef 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -19,6 +19,7 @@ import type { AuthenticatorAttachment, PublicKeyCredentialCreationOptions, PublicKeyCredentialRequestOptions, + COSEAlgorithmIdentifier, } from './dom'; export * from './dom'; @@ -129,7 +130,12 @@ export interface AuthenticatorAttestationResponseJSON { clientDataJSON: Base64URLString; attestationObject: Base64URLString; // Optional in L2, but becomes required in L3. Play it safe until L3 becomes Recommendation + authenticatorData?: Base64URLString; + // Optional in L2, but becomes required in L3. Play it safe until L3 becomes Recommendation transports?: AuthenticatorTransportFuture[]; + publicKey?: Base64URLString; + // Optional in L2, but becomes required in L3. Play it safe until L3 becomes Recommendation + publicKeyAlgorithm?: COSEAlgorithmIdentifier; } /** -- cgit v1.2.3 From 84ce69c1f545bf6345a08ead634ecf15d578d2a7 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sun, 25 Jun 2023 10:52:41 -0700 Subject: Shift publicKey around --- packages/typescript-types/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/typescript-types') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index 29a99ef..73ee1e9 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -133,9 +133,9 @@ export interface AuthenticatorAttestationResponseJSON { authenticatorData?: Base64URLString; // Optional in L2, but becomes required in L3. Play it safe until L3 becomes Recommendation transports?: AuthenticatorTransportFuture[]; - publicKey?: Base64URLString; // Optional in L2, but becomes required in L3. Play it safe until L3 becomes Recommendation publicKeyAlgorithm?: COSEAlgorithmIdentifier; + publicKey?: Base64URLString; } /** -- cgit v1.2.3