diff --git a/deploy/auth/index.js b/deploy/auth/index.js index 413afb7088e2cfc62b429c07043a566045461308..62b41fa21e1468d38c91b11ba9bfbda6d7b46097 100644 --- a/deploy/auth/index.js +++ b/deploy/auth/index.js @@ -23,8 +23,12 @@ const configureAuth = async (app) => { app.get('/logout', (req, res) => { if (req.user && req.user.id) objStoreDb.delete(req.user.id) - req.logout() - res.redirect(`${HOST_PATHNAME}/`) + req.logout(err => { + if (!!err) { + console.log(`err during logout: ${err.toString()}`) + } + res.redirect(`${HOST_PATHNAME}/`) + }) }) }