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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user