added helmet middleware

This commit is contained in:
2022-07-21 22:44:27 +05:30
parent da91fabbed
commit 50cc9cc145
4 changed files with 20 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ const callback = async (req, res) => {
return res.redirect(409, '/');
} else if (error) {
logger.error('callback error', { authError: error });
return res.status(401).send(`Error: ${error}`);
return res.status(401).send({ message: `Auth callback error` });
} else {
// get auth tokens
res.clearCookie(stateKey);