diff options
-rw-r--r-- | packages/typescript-types/src/index.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index 56d420a..772184f 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -72,12 +72,20 @@ export interface AssertionCredentialJSON response: AuthenticatorAssertionResponseJSON; } +/** + * A slightly-modified AuthenticatorAttestationResponse to simplify working with ArrayBuffers that + * are Base64URL-encoded in the browser so that they can be sent as JSON to the server. + */ export interface AuthenticatorAttestationResponseJSON extends Omit<AuthenticatorAttestationResponse, 'clientDataJSON' | 'attestationObject'> { clientDataJSON: Base64URLString; attestationObject: Base64URLString; } +/** + * A slightly-modified AuthenticatorAssertionResponse to simplify working with ArrayBuffers that + * are Base64URL-encoded in the browser so that they can be sent as JSON to the server. + */ export interface AuthenticatorAssertionResponseJSON extends Omit< AuthenticatorAssertionResponse, |