From 100ea77af46317d815b7bf4f695144187414d5b8 Mon Sep 17 00:00:00 2001 From: Jarrett Helton Date: Sat, 21 Aug 2021 17:10:21 -0400 Subject: renaming assertion -> authentication --- packages/typescript-types/src/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/typescript-types') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index 0fed2f8..a930861 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -60,7 +60,7 @@ export interface RegistrationCredential extends PublicKeyCredential { } /** - * A slightly-modified AttestationCredential to simplify working with ArrayBuffers that + * A slightly-modified RegistrationCredential 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 RegistrationCredentialJSON @@ -74,16 +74,16 @@ export interface RegistrationCredentialJSON /** * The value returned from navigator.credentials.get() */ -export interface AssertionCredential extends PublicKeyCredential { +export interface AuthenticationCredential extends PublicKeyCredential { response: AuthenticatorAssertionResponse; } /** - * A slightly-modified AssertionCredential to simplify working with ArrayBuffers that + * A slightly-modified AuthenticationCredential 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 AssertionCredentialJSON - extends Omit { +export interface AuthenticationCredentialJSON + extends Omit { rawId: Base64URLString; response: AuthenticatorAssertionResponseJSON; clientExtensionResults: AuthenticationExtensionsClientOutputs; -- cgit v1.2.3