summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types/src
diff options
context:
space:
mode:
authorJarrett Helton <jaydhelton@gmail.com>2021-08-21 16:14:07 -0400
committerJarrett Helton <jaydhelton@gmail.com>2021-08-21 16:14:07 -0400
commitdf30228f4ebcccba03ddcfb3fc2dbd7102ae020d (patch)
tree14513ec808e7bacb36140bd523e7015780aa331e /packages/typescript-types/src
parent2f87d70bf348cf854c6ac215bd9d424502278da6 (diff)
starting attestation -> registration rename
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r--packages/typescript-types/src/index.ts8
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[];
};