From e9cb351795ca31b583be534b3347376e61b1c2c3 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Wed, 20 May 2020 23:37:27 -0700 Subject: Rename some types --- 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 4411fec..8ab5763 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -1,5 +1,5 @@ /** - * A variant of AttestationCredentials suitable for JSON transmission to the browser to + * A variant of PublicKeyCredentialCreationOptions suitable for JSON transmission to the browser to * (eventually) get passed into navigator.credentials.create(...) in the browser. * * Noteworthy values: @@ -7,7 +7,7 @@ * @param user.id Your unique, internal ID for the user. Will be converted to a Uint8Array in the * browser */ -export type AttestationCredentialsJSON = { +export type PublicKeyCredentialCreationOptionsJSON = { publicKey: { challenge: string, // The organization registering and authenticating the user @@ -30,7 +30,7 @@ export type AttestationCredentialsJSON = { }; /** - * A variant of AssertionCredentials suitable for JSON transmission to the browser to + * A variant of PublicKeyCredentialRequestOptions suitable for JSON transmission to the browser to * (eventually) get passed into navigator.credentials.get(...) in the browser. * * Noteworthy values: @@ -38,7 +38,7 @@ export type AttestationCredentialsJSON = { * @param allowCredentials.id Base64-encoded credentialId. Will be converted to a Uint8Array in the * browser */ -export type AssertionCredentialsJSON = { +export type PublicKeyCredentialRequestOptionsJSON = { publicKey: { // challenge: string, -- cgit v1.2.3