summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types/src
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-07-04 08:04:44 -0700
committerGitHub <noreply@github.com>2022-07-04 08:04:44 -0700
commit184cbb4457285817db4ded722d7b54528988e2e0 (patch)
tree3b895f8c273e924dd6fdd52c50fd2528575dc41d /packages/typescript-types/src
parent524e7f881624f36aa17f406bb25fa23d02449652 (diff)
parent5a5b5a3bdf7c709493fc9e63f0f02eed99f25baf (diff)
Merge pull request #214 from MasterKale/feat/conditional-ui
feat/conditional-ui
Diffstat (limited to 'packages/typescript-types/src')
-rw-r--r--packages/typescript-types/src/index.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts
index b4bafc0..ce5d799 100644
--- a/packages/typescript-types/src/index.ts
+++ b/packages/typescript-types/src/index.ts
@@ -164,6 +164,14 @@ export interface PublicKeyCredentialDescriptorFuture extends Omit<PublicKeyCrede
}
/**
+ * A super class of TypeScript's `PublicKeyCredential` that knows about upcoming WebAuthn methods
+ */
+export interface PublicKeyCredentialFuture extends PublicKeyCredential {
+ // See https://github.com/w3c/webauthn/issues/1745
+ isConditionalMediationAvailable?(): Promise<boolean>;
+}
+
+/**
* The two types of credentials as defined by bit 3 ("Backup Eligibility") in authenticator data:
* - `"singleDevice"` credentials will never be backed up
* - `"multiDevice"` credentials can be backed up