summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-04-27 22:38:38 -0700
committerMatthew Miller <matthew@millerti.me>2022-05-15 21:49:33 -0700
commitfc6351302525dc7c96677cf9c50138b6e4bde3b8 (patch)
tree3198443ff22b7679cf4ccf1d28647987d83c85e7
parentf82fbd2f772d196ff8a85fb8050884bfcec1baf3 (diff)
Define new CredentialDeviceType type
-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..dd7e52f 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 bits 3 and 4 in authenticator data:
+ * - `"singleDevice"` credentials will never be backed up
+ * - `"multiDevice"` credentials can be backed up
+ */
+export type CredentialDeviceType = 'singleDevice' | 'multiDevice';