From 7bd7cbfd9aa1c3ea176500356889fcda55a3d230 Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Mon, 9 Jan 2023 14:33:10 +0100 Subject: [PATCH] [EC-598] chore: clean up console logs --- apps/browser/src/content/webauthn/content-script.ts | 3 --- apps/browser/src/content/webauthn/page-script.ts | 3 --- libs/common/src/services/fido2/fido2.service.ts | 9 --------- 3 files changed, 15 deletions(-) diff --git a/apps/browser/src/content/webauthn/content-script.ts b/apps/browser/src/content/webauthn/content-script.ts index 51b32a29314..3183654a036 100644 --- a/apps/browser/src/content/webauthn/content-script.ts +++ b/apps/browser/src/content/webauthn/content-script.ts @@ -1,9 +1,6 @@ import { MessageType } from "./messaging/message"; import { Messenger } from "./messaging/messenger"; -// eslint-disable-next-line no-console -console.log("content-script loaded"); - const s = document.createElement("script"); s.src = chrome.runtime.getURL("content/webauthn/page-script.js"); (document.head || document.documentElement).appendChild(s); diff --git a/apps/browser/src/content/webauthn/page-script.ts b/apps/browser/src/content/webauthn/page-script.ts index 291bf950884..950e8eebce4 100644 --- a/apps/browser/src/content/webauthn/page-script.ts +++ b/apps/browser/src/content/webauthn/page-script.ts @@ -3,9 +3,6 @@ import { WebauthnUtils } from "../../browser/webauthn-utils"; import { MessageType } from "./messaging/message"; import { Messenger } from "./messaging/messenger"; -// eslint-disable-next-line no-console -console.log("page-script loaded"); - const browserCredentials = { create: navigator.credentials.create.bind(navigator.credentials), get: navigator.credentials.get.bind(navigator.credentials), diff --git a/libs/common/src/services/fido2/fido2.service.ts b/libs/common/src/services/fido2/fido2.service.ts index 851cbe22259..3ee7a6f10af 100644 --- a/libs/common/src/services/fido2/fido2.service.ts +++ b/libs/common/src/services/fido2/fido2.service.ts @@ -50,8 +50,6 @@ export class Fido2Service implements Fido2ServiceAbstraction { credentialName: params.rp.name, userName: params.user.displayName, }); - // eslint-disable-next-line no-console - console.log("Fido2Service.createCredential", params); const attestationFormat = STANDARD_ATTESTATION_FORMAT; const encoder = new TextEncoder(); @@ -109,13 +107,6 @@ export class Fido2Service implements Fido2ServiceAbstraction { }) ); - // eslint-disable-next-line no-console - console.log("Fido2Service.createCredential => result", { - credentialId: Fido2Utils.bufferToString(credentialId.raw), - clientDataJSON: Fido2Utils.bufferToString(clientData), - attestationObject: Fido2Utils.bufferToString(attestationObject), - }); - return { credentialId: Fido2Utils.bufferToString(credentialId.raw), clientDataJSON: Fido2Utils.bufferToString(clientData),