1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-14 23:45:37 +00:00

not working

This commit is contained in:
Anders Åberg
2025-02-13 16:25:15 +01:00
parent 1f4b22f604
commit f6ef7a3bef
2 changed files with 64 additions and 78 deletions

View File

@@ -207,36 +207,6 @@ export class DesktopAutofillService implements OnDestroy {
ipc.autofill.listenPasskeyAssertion(async (clientId, sequenceNumber, request, callback) => {
this.logService.warning("listenPasskeyAssertion", clientId, sequenceNumber, request);
// TODO: For some reason the credentialId is passed as an empty array in the request, so we need to
// get it from the cipher. For that we use the recordIdentifier, which is the cipherId.
// if (request.recordIdentifier && request.credentialId.length === 0) {
// const cipher = await this.cipherService.get(request.recordIdentifier);
// if (!cipher) {
// this.logService.error("listenPasskeyAssertion error", "Cipher not found");
// callback(new Error("Cipher not found"), null);
// return;
// }
// const activeUserId = await firstValueFrom(
// this.accountService.activeAccount$.pipe(map((a) => a?.id)),
// );
// const decrypted = await cipher.decrypt(
// await this.cipherService.getKeyForCipherKeyDecryption(cipher, activeUserId),
// );
// const fido2Credential = decrypted.login.fido2Credentials?.[0];
// if (!fido2Credential) {
// this.logService.error("listenPasskeyAssertion error", "Fido2Credential not found");
// callback(new Error("Fido2Credential not found"), null);
// return;
// }
// request.credentialId = Array.from(
// guidToRawFormat(decrypted.login.fido2Credentials?.[0].credentialId),
// );
// }
const controller = new AbortController();
void this.fido2AuthenticatorService
.getAssertion(this.convertAssertionRequest(request), null, controller)