diff options
author | Jarrett Helton <jaydhelton@gmail.com> | 2021-08-21 17:10:21 -0400 |
---|---|---|
committer | Jarrett Helton <jaydhelton@gmail.com> | 2021-08-21 17:10:21 -0400 |
commit | 100ea77af46317d815b7bf4f695144187414d5b8 (patch) | |
tree | 18ae5272bef0d7838b8be11a2b754ee2df6cc76a /packages/typescript-types/src | |
parent | df30228f4ebcccba03ddcfb3fc2dbd7102ae020d (diff) |
renaming assertion -> authentication
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r-- | packages/typescript-types/src/index.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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<AssertionCredential, 'response' | 'rawId' | 'getClientExtensionResults'> { +export interface AuthenticationCredentialJSON + extends Omit<AuthenticationCredential, 'response' | 'rawId' | 'getClientExtensionResults'> { rawId: Base64URLString; response: AuthenticatorAssertionResponseJSON; clientExtensionResults: AuthenticationExtensionsClientOutputs; |