From df30228f4ebcccba03ddcfb3fc2dbd7102ae020d Mon Sep 17 00:00:00 2001 From: Jarrett Helton Date: Sat, 21 Aug 2021 16:14:07 -0400 Subject: starting attestation -> registration rename --- packages/typescript-types/src/index.ts | 8 ++++---- 1 file changed, 4 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 4834a37..0fed2f8 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -55,7 +55,7 @@ export interface PublicKeyCredentialUserEntityJSON /** * The value returned from navigator.credentials.create() */ -export interface AttestationCredential extends PublicKeyCredential { +export interface RegistrationCredential extends PublicKeyCredential { response: AuthenticatorAttestationResponseFuture; } @@ -63,8 +63,8 @@ export interface AttestationCredential extends PublicKeyCredential { * A slightly-modified AttestationCredential 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 AttestationCredentialJSON - extends Omit { +export interface RegistrationCredentialJSON + extends Omit { rawId: Base64URLString; response: AuthenticatorAttestationResponseJSON; clientExtensionResults: AuthenticationExtensionsClientOutputs; @@ -122,7 +122,7 @@ export type AuthenticatorDevice = { credentialID: Buffer; // Number of times this authenticator is expected to have been used counter: number; - // From browser's `startAttestation()` -> AttestationCredentialJSON.transports (API L2 and up) + // From browser's `startRegistration()` -> RegistrationCredentialJSON.transports (API L2 and up) transports?: AuthenticatorTransport[]; }; -- cgit v1.2.3