mirror of
https://github.com/bitwarden/browser
synced 2026-02-10 21:50:15 +00:00
removed console.logs
This commit is contained in:
@@ -132,7 +132,7 @@ export class Fido2AuthenticatorService<ParentWindowReference>
|
||||
userVerification: params.requireUserVerification,
|
||||
rpId: params.rpEntity.id,
|
||||
});
|
||||
console.log("rpid", params.rpEntity.id, response.cipherId);
|
||||
|
||||
const cipherId = response.cipherId;
|
||||
userVerified = response.userVerified;
|
||||
|
||||
@@ -147,7 +147,7 @@ export class Fido2AuthenticatorService<ParentWindowReference>
|
||||
keyPair = await createKeyPair();
|
||||
pubKeyDer = await crypto.subtle.exportKey("spki", keyPair.publicKey);
|
||||
const encrypted = await this.cipherService.get(cipherId);
|
||||
console.log("Encrypted", encrypted);
|
||||
|
||||
const activeUserId = await firstValueFrom(
|
||||
this.accountService.activeAccount$.pipe(map((a) => a?.id)),
|
||||
);
|
||||
@@ -155,7 +155,6 @@ export class Fido2AuthenticatorService<ParentWindowReference>
|
||||
cipher = await encrypted.decrypt(
|
||||
await this.cipherService.getKeyForCipherKeyDecryption(encrypted, activeUserId),
|
||||
);
|
||||
|
||||
|
||||
if (
|
||||
!userVerified &&
|
||||
@@ -177,15 +176,12 @@ export class Fido2AuthenticatorService<ParentWindowReference>
|
||||
await this.cipherService.updateWithServer(reencrypted);
|
||||
await this.cipherService.clearCache(activeUserId);
|
||||
credentialId = fido2Credential.credentialId;
|
||||
console.log("rpid", params.rpEntity.id);
|
||||
|
||||
} catch (error) {
|
||||
this.logService?.error(
|
||||
`[Fido2Authenticator] Aborting because of unknown error when creating credential: ${error}`,
|
||||
);
|
||||
throw new Fido2AuthenticatorError(Fido2AuthenticatorErrorCode.Unknown);
|
||||
}
|
||||
console.log("authdata rpid", params.rpEntity.id);
|
||||
const authData = await generateAuthData({
|
||||
rpId: params.rpEntity.id,
|
||||
credentialId: parseCredentialId(credentialId),
|
||||
|
||||
Reference in New Issue
Block a user