From 916fd7b32ba03b13b1309faae0ca077eebc4efb9 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Thu, 21 May 2020 08:40:39 -0700 Subject: Refine AuthenticatorAssertionResponseJSON interface --- packages/typescript-types/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/typescript-types') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index 8cb15de..f4cb6ae 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -85,12 +85,12 @@ AuthenticatorAttestationResponse, 'clientDataJSON' | 'attestationObject' * are base64-encoded in the browser so that they can be sent as JSON to the server. */ export interface AuthenticatorAssertionResponseJSON extends Omit< -AuthenticatorAssertionResponse, 'clientDataJSON' | 'authenticatorData' | 'signature' +AuthenticatorAssertionResponse, 'clientDataJSON' | 'authenticatorData' | 'signature' | 'userHandle' > { base64AuthenticatorData: string; base64ClientDataJSON: string; base64Signature: string; - base64UserHandle: string; + base64UserHandle?: string; } export enum ATTESTATION_FORMATS { -- cgit v1.2.3