From e82c9e9f813897015c9054aa6d279e8ca4279f07 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Tue, 2 Jun 2020 15:14:31 -0700 Subject: Standardize on use of “base64url” where applicable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/typescript-types/src/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'packages/typescript-types/src') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index 0f84c6a..da063a5 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -29,14 +29,12 @@ PublicKeyCredentialRequestOptions, 'challenge' |'allowCredentials' export interface PublicKeyCredentialDescriptorJSON extends Omit< PublicKeyCredentialDescriptor, 'id' > { - // Should be a Base64-encoded credential ID. Will be converted to a Uint8Array in the browser id: Base64URLString; } export interface PublicKeyCredentialUserEntityJSON extends Omit < PublicKeyCredentialUserEntity, 'id' > { - // Should be a Base64-encoded credential ID. Will be converted to a Uint8Array in the browser id: Base64URLString; } @@ -49,7 +47,7 @@ export interface AttestationCredential extends PublicKeyCredential { /** * A slightly-modified AttestationCredential to simplify working with ArrayBuffers that - * are base64-encoded in the browser so that they can be sent as JSON to the server. + * are base64url-encoded in the browser so that they can be sent as JSON to the server. */ export interface AttestationCredentialJSON extends Omit { @@ -66,7 +64,7 @@ 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. + * are base64url-encoded in the browser so that they can be sent as JSON to the server. */ export interface AssertionCredentialJSON extends Omit { -- cgit v1.2.3