From 45664bdb65207c697335df29dd10b44bff44fec2 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Fri, 10 Oct 2025 21:55:53 +0800 Subject: [PATCH] enhance error log --- .../src/ipc/network/authorize-user-in-window.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js b/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js index 4c671fb62..62dcf3117 100644 --- a/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js +++ b/packages/bruno-electron/src/ipc/network/authorize-user-in-window.js @@ -33,7 +33,12 @@ const authorizeUserInWindow = ({ authorizeUrl, callbackUrl, session, additionalH // Ensure the browser window complies with "SSL/TLS Certificate Verification" preference window.webContents.on('certificate-error', (event, url, error, certificate, callback) => { event.preventDefault(); - callback(!preferencesUtil.shouldVerifyTls()); + const shouldAllow = !preferencesUtil.shouldVerifyTls(); + if (!shouldAllow) { + console.error(`Bruno OAuth: SSL Certificate verification failed for ${url}. Error: ${error}`); + console.error('Bruno OAuth: Disable "SSL/TLS Certificate Verification" in settings to proceed with OAuth flows that use invalid certificates.'); + } + callback(shouldAllow); }); const { session: webSession } = window.webContents;