Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update passkey messaging types (#2177)

Leendert de Borst8e2421167f8b
diff --git a/apps/browser-extension/src/utils/passkey/types.ts b/apps/browser-extension/src/utils/passkey/types.ts
index e78ace0a7..70ecc59bd 100644
--- a/apps/browser-extension/src/utils/passkey/types.ts
+++ b/apps/browser-extension/src/utils/passkey/types.ts
@@ -72,7 +72,6 @@ export type WebAuthnGetRequest = {
allowCredentials?: Array<{ id: string }>;
};
origin: string;
- isAutomaticRequest?: boolean;
};
/**
@@ -82,6 +81,35 @@ export type WebAuthnSettingsResponse = {
enabled: boolean;
};
+/**
+ * Display info for a passkey offered in the inline conditional-autofill dropdown.
+ */
+export type ConditionalPasskeyOption = {
+ id: string;
+ itemId: string;
+ serviceName: string;
+ username: string;
+ logo: number[] | null;
+};
+
+/**
+ * Response for GET_MATCHING_PASSKEYS: the passkeys available for an rpId.
+ */
+export type MatchingPasskeysResponse = {
+ success: boolean;
+ locked: boolean;
+ passkeys: ConditionalPasskeyOption[];
+};
+
+/**
+ * Response for WEBAUTHN_GET_ASSERTION: the signed assertion or an error.
+ */
+export type WebAuthnAssertionResponse = {
+ success: boolean;
+ credential?: PasskeyGetCredentialResponse;
+ error?: string;
+};
+
/**
* Pending passkey request data for create operation
*/