diff options
author | Matthew Miller <matthew@millerti.me> | 2020-06-02 15:14:31 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-06-02 15:14:31 -0700 |
commit | e82c9e9f813897015c9054aa6d279e8ca4279f07 (patch) | |
tree | e8e434b9b95362a86f70c93b89c6f94434ba42ad /packages/typescript-types/src | |
parent | 2ed2974517eb934f878b3e0fb0baa024646979c4 (diff) |
Standardize on use of “base64url” where applicable
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r-- | packages/typescript-types/src/index.ts | 6 |
1 files changed, 2 insertions, 4 deletions
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<AttestationCredential, 'response' | 'rawId' | 'getClientExtensionResults'> { @@ -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<AssertionCredential, 'response' | 'rawId' | 'getClientExtensionResults'> { |