Skip to content

Commit

Permalink
feat: sends user id through redirect upon successful login (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
gweiying authored Feb 23, 2021
1 parent 0032b3d commit bf3447a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bf3447a

Please sign in to comment.