From 870e83e66c05dfdcc4bd571f922282693164cb30 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Tue, 2 Jun 2020 14:54:22 -0700 Subject: Exclude methods from credential JSON output --- packages/typescript-types/src/index.ts | 5 +++-- 1 file changed, 3 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 d4a398d..034363d 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -54,7 +54,7 @@ export interface AttestationCredential extends PublicKeyCredential { * are base64-encoded in the browser so that they can be sent as JSON to the server. */ export interface AttestationCredentialJSON - extends Omit { + extends Omit { rawId: Base64String; response: AuthenticatorAttestationResponseJSON; } @@ -70,7 +70,8 @@ export interface AssertionCredential extends PublicKeyCredential { * A slightly-modified AssertionCredential to simplify working with ArrayBuffers that * are base64-encoded in the browser so that they can be sent as JSON to the server. */ -export interface AssertionCredentialJSON extends Omit { +export interface AssertionCredentialJSON + extends Omit { rawId: Base64String; response: AuthenticatorAssertionResponseJSON; } -- cgit v1.2.3