1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-02 01:33:22 +00:00

Try syncing after makeCredential on Windows

This commit is contained in:
Isaiah Inuwa
2025-11-08 23:50:04 -06:00
parent 11d3ef1169
commit 6e6239c738

View File

@@ -223,6 +223,19 @@ export class DesktopAutofillService implements OnDestroy {
this.logService.error("listenPasskeyRegistration error", error);
callback(error, null);
}
if (process.platform === "win32") {
// Windows does not prompt us to sync, so we need to sync immediately
// after creating the credential so it shows up in the Windows Hello
// credentials list.
try {
this.logService.info("Initiated FIDO2 sync after makeCredential")
this.adHocSync();
}
catch (error) {
this.logService.error("Failed to sync credentials after makeCredential", error);
}
}
});
ipc.autofill.listenPasskeyAssertionWithoutUserInterface(