cookies - seetings not used with social login

This commit is contained in:
Avris 2021-08-28 10:44:56 +02:00
parent 8c6249dd2b
commit 53c42f1a68
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ router.get('/user/social/:provider', handleErrorAsync(async (req, res) => {
}
await saveAuthenticator(req.db, req.params.provider, dbUser, payload);
return res.cookie('token', token).redirect('/' + config.user.route);
return res.cookie('token', token, cookieSettings).redirect('/' + config.user.route);
}));
router.get('/user/social-connections', handleErrorAsync(async (req, res) => {