summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2021-04-17 21:49:27 -0700
committerMatthew Miller <matthew@millerti.me>2021-04-17 21:49:27 -0700
commit926eda9ae5f12b88179c6c13d0ee5ede49e5e411 (patch)
tree541f90e33aa08659c985c5c3f91ebfaed74692e8
parentfb732e401eaf1a9a0d1ff65fcb29343de201c140 (diff)
Update types related to user.id/userHandle
No Base64URL-encoding/-decoding ever took place with this value. The server passes it to the browser in attestation options as-is, while `startAttestation()` merely converts it to an ArrayBuffer.
-rw-r--r--packages/typescript-types/src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts
index ab39bd6..4834a37 100644
--- a/packages/typescript-types/src/index.ts
+++ b/packages/typescript-types/src/index.ts
@@ -49,7 +49,7 @@ export interface PublicKeyCredentialDescriptorJSON
export interface PublicKeyCredentialUserEntityJSON
extends Omit<PublicKeyCredentialUserEntity, 'id'> {
- id: Base64URLString;
+ id: string;
}
/**
@@ -111,7 +111,7 @@ export interface AuthenticatorAssertionResponseJSON
authenticatorData: Base64URLString;
clientDataJSON: Base64URLString;
signature: Base64URLString;
- userHandle?: Base64URLString;
+ userHandle?: string;
}
/**