cookies - seetings not used with social login

This commit is contained in:
Andrea Vos 2021-08-28 10:44:56 +02:00
parent 75d810cc83
commit 774eabb95e

View File

@ -414,7 +414,7 @@ router.get('/user/social/:provider', handleErrorAsync(async (req, res) => {
} }
await saveAuthenticator(req.db, req.params.provider, dbUser, payload); 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) => { router.get('/user/social-connections', handleErrorAsync(async (req, res) => {