1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 13:40:06 +00:00

don't throw, instead return undefined

This commit is contained in:
Anders Åberg
2025-03-06 17:20:26 +01:00
parent f15f5c6e16
commit 2e6656a683

View File

@@ -212,7 +212,7 @@ export class DesktopFido2UserInterfaceSession implements Fido2UserInterfaceSessi
// Wait for the UI to wrap up
const confirmation = await this.waitForUiNewCredentialConfirmation();
if (!confirmation) {
throw new Error("User cancelled");
return { cipherId: undefined, userVerified: false };
}
// Create the credential
await this.createCredential({