summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-06-02 14:54:22 -0700
committerMatthew Miller <matthew@millerti.me>2020-06-02 14:54:22 -0700
commit870e83e66c05dfdcc4bd571f922282693164cb30 (patch)
tree052813494aff9269bd4fb526a9f192261537ce19
parent047413af015302639a1bd23934d9eb23fcbec169 (diff)
Exclude methods from credential JSON output
-rw-r--r--packages/typescript-types/src/index.ts5
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;
}