summaryrefslogtreecommitdiffhomepage
path: root/packages/typescript-types
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-05-16 22:52:53 -0700
committerGitHub <noreply@github.com>2022-05-16 22:52:53 -0700
commit39a41ae7e86a4782017c2f489f7c66a9effdcaf3 (patch)
treeccc0cb0708cce781f7d6e189528b37bbd9a1a503 /packages/typescript-types
parent5c189bca1dc480e919bb82077b51829f29123375 (diff)
parent190a746b89e2cf3238c0070c08f8458e7751c5ea (diff)
Merge pull request #195 from MasterKale/feat/backup-state
feat/backup-state
Diffstat (limited to 'packages/typescript-types')
-rw-r--r--packages/typescript-types/src/index.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/typescript-types/src/index.ts b/packages/typescript-types/src/index.ts
index 751474a..6381b80 100644
--- a/packages/typescript-types/src/index.ts
+++ b/packages/typescript-types/src/index.ts
@@ -152,3 +152,10 @@ export interface AuthenticatorAttestationResponseFuture extends AuthenticatorAtt
* registration and authentication.
*/
export type AuthenticatorTransport = "ble" | "internal" | "nfc" | "usb" | "cable";
+
+/**
+ * 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
+ */
+export type CredentialDeviceType = 'singleDevice' | 'multiDevice';