mirror of
https://github.com/bitwarden/browser
synced 2026-02-14 23:45:37 +00:00
not working
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user