From 21f7bf8ce7562c486bfa0e4e7e4b58fcef520cf0 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 4 Jul 2022 08:16:28 -0700 Subject: Add authenticatorAttachment --- packages/typescript-types/src/index.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/typescript-types') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index ce5d799..e1cfd2b 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -14,6 +14,7 @@ import type { PublicKeyCredentialUserEntity, AuthenticationExtensionsClientInputs, AuthenticationExtensionsClientOutputs, + AuthenticatorAttachment, } from './dom'; export * from './dom'; @@ -169,6 +170,8 @@ export interface PublicKeyCredentialDescriptorFuture extends Omit; + // See https://w3c.github.io/webauthn/#dom-publickeycredential-authenticatorattachment + authenticatorAttachment?: AuthenticatorAttachment; } /** -- cgit v1.2.3 From 803c0cd5d9321c673fb556b16e37c8d583ba8a1d Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Mon, 4 Jul 2022 08:17:00 -0700 Subject: Update the interface that credentials extend --- packages/typescript-types/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/typescript-types') diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts index e1cfd2b..0fc1a53 100644 --- a/packages/typescript-types/src/index.ts +++ b/packages/typescript-types/src/index.ts @@ -56,7 +56,7 @@ export interface PublicKeyCredentialUserEntityJSON /** * The value returned from navigator.credentials.create() */ -export interface RegistrationCredential extends PublicKeyCredential { +export interface RegistrationCredential extends PublicKeyCredentialFuture { response: AuthenticatorAttestationResponseFuture; } @@ -75,7 +75,7 @@ export interface RegistrationCredentialJSON /** * The value returned from navigator.credentials.get() */ -export interface AuthenticationCredential extends PublicKeyCredential { +export interface AuthenticationCredential extends PublicKeyCredentialFuture { response: AuthenticatorAssertionResponse; } -- cgit v1.2.3