From 53c42f1a68f4380ff7b2f59ccb9bbbdd4b5c3e30 Mon Sep 17 00:00:00 2001 From: Avris Date: Sat, 28 Aug 2021 10:44:56 +0200 Subject: [PATCH] cookies - seetings not used with social login --- server/routes/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/user.js b/server/routes/user.js index fa016fc4..8a7a3036 100644 --- a/server/routes/user.js +++ b/server/routes/user.js @@ -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) => {