diff options
author | Jarrett Helton <jaydhelton@gmail.com> | 2021-08-21 16:14:07 -0400 |
---|---|---|
committer | Jarrett Helton <jaydhelton@gmail.com> | 2021-08-21 16:14:07 -0400 |
commit | df30228f4ebcccba03ddcfb3fc2dbd7102ae020d (patch) | |
tree | 14513ec808e7bacb36140bd523e7015780aa331e /packages/typescript-types/src | |
parent | 2f87d70bf348cf854c6ac215bd9d424502278da6 (diff) |
starting attestation -> registration rename
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r-- | packages/typescript-types/src/index.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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<AttestationCredential, 'response' | 'rawId' | 'getClientExtensionResults'> { +export interface RegistrationCredentialJSON + extends Omit<RegistrationCredential, 'response' | 'rawId' | 'getClientExtensionResults'> { 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[]; }; |