From bf3447aafcfaab9b254a539a0b4a1e13f8e951ab Mon Sep 17 00:00:00 2001 From: gweiying <39231249+gweiying@users.noreply.github.com> Date: Tue, 23 Feb 2021 09:57:21 +0800 Subject: [PATCH] feat: sends user id through redirect upon successful login (#110) --- routes/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/auth.js b/routes/auth.js index e1f1d5d71..bcb117fcc 100644 --- a/routes/auth.js +++ b/routes/auth.js @@ -64,7 +64,7 @@ async function githubAuth (req, res, next) { res.cookie(COOKIE_NAME, token, cookieSettings) - res.redirect(`${FRONTEND_URL}/auth#isomercms`) + res.redirect(`${FRONTEND_URL}/auth#isomercms-${userId}`) } async function logout(req, res) {