From bc49968908b070353aeda0fe6da2c3fd10880b05 Mon Sep 17 00:00:00 2001 From: Eric Mc Sween <5454374+emcsween@users.noreply.github.com> Date: Thu, 10 Jul 2025 17:08:45 -0400 Subject: [PATCH] Merge pull request #27060 from overleaf/em-log-oauth-authenticate-errors Log OAuth authentication errors GitOrigin-RevId: 32bb3c66b61d0de8cbbfe1da08042f06b4f4342a --- .../src/Features/Authentication/AuthenticationController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/web/app/src/Features/Authentication/AuthenticationController.js b/services/web/app/src/Features/Authentication/AuthenticationController.js index 7a97d2ac9c..c321ce3edf 100644 --- a/services/web/app/src/Features/Authentication/AuthenticationController.js +++ b/services/web/app/src/Features/Authentication/AuthenticationController.js @@ -392,6 +392,10 @@ const AuthenticationController = { req.oauth_user = token.user next() } catch (err) { + logger.warn( + { errName: err.name, errMessage: err.message }, + 'OAuth authenticate error' + ) if ( err.code === 400 && err.message === 'Invalid request: malformed authorization header'