diff options
author | Matthew Miller <matthew@millerti.me> | 2020-06-02 14:54:22 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-06-02 14:54:22 -0700 |
commit | 870e83e66c05dfdcc4bd571f922282693164cb30 (patch) | |
tree | 052813494aff9269bd4fb526a9f192261537ce19 | |
parent | 047413af015302639a1bd23934d9eb23fcbec169 (diff) |
Exclude methods from credential JSON output
-rw-r--r-- | packages/typescript-types/src/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
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<AttestationCredential, 'response' | 'rawId'> { + extends Omit<AttestationCredential, 'response' | 'rawId' | 'getClientExtensionResults'> { 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<AssertionCredential, 'response' | 'rawId'> { +export interface AssertionCredentialJSON + extends Omit<AssertionCredential, 'response' | 'rawId' | 'getClientExtensionResults'> { rawId: Base64String; response: AuthenticatorAssertionResponseJSON; } |