mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 12:24:25 +02:00
Merge pull request #27060 from overleaf/em-log-oauth-authenticate-errors
Log OAuth authentication errors GitOrigin-RevId: 32bb3c66b61d0de8cbbfe1da08042f06b4f4342a
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user