summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types
diff options
context:
space:
mode:
Diffstat (limited to 'packages/typescript-types')
-rw-r--r--packages/typescript-types/src/index.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts
index ce5d799..0fc1a53 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';
@@ -55,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;
}
@@ -74,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;
}
@@ -169,6 +170,8 @@ export interface PublicKeyCredentialDescriptorFuture extends Omit<PublicKeyCrede
export interface PublicKeyCredentialFuture extends PublicKeyCredential {
// See https://github.com/w3c/webauthn/issues/1745
isConditionalMediationAvailable?(): Promise<boolean>;
+ // See https://w3c.github.io/webauthn/#dom-publickeycredential-authenticatorattachment
+ authenticatorAttachment?: AuthenticatorAttachment;
}
/**