Forráskód Böngészése

Merge pull request #27060 from overleaf/em-log-oauth-authenticate-errors

Log OAuth authentication errors

GitOrigin-RevId: 32bb3c66b61d0de8cbbfe1da08042f06b4f4342a
Eric Mc Sween 1 éve
szülő
commit
bc49968908

+ 4 - 0
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'