From 926eda9ae5f12b88179c6c13d0ee5ede49e5e411 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 17 Apr 2021 21:49:27 -0700 Subject: 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. --- packages/typescript-types/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/typescript-types/src') 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 { - id: Base64URLString; + id: string; } /** @@ -111,7 +111,7 @@ export interface AuthenticatorAssertionResponseJSON authenticatorData: Base64URLString; clientDataJSON: Base64URLString; signature: Base64URLString; - userHandle?: Base64URLString; + userHandle?: string; } /** -- cgit v1.2.3