diff options
author | Matthew Miller <matthew@millerti.me> | 2022-07-04 09:03:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 09:03:39 -0700 |
commit | e106570e8d09edcee927f1e2502c90b1a9d1ac40 (patch) | |
tree | 09dfc61765215ef9ff442e1cdae186f1f446ca14 /packages/typescript-types | |
parent | 184cbb4457285817db4ded722d7b54528988e2e0 (diff) | |
parent | 1a1322e27af3d68fa4cc98f62bf51c6c8e9f12ac (diff) |
Merge pull request #221 from MasterKale/feat/authenticator-attachment
feat/authenticator-attachment
Diffstat (limited to 'packages/typescript-types')
-rw-r--r-- | packages/typescript-types/src/index.ts | 7 |
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; } /** |