Skip to content

Commit

Permalink
chore: don't double-respond for login redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 18, 2024
1 parent 73c9db4 commit e4f4a72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/auth.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ router.get("/login",
if (returnTo) {
console.info(`/api/auth/login: redirecting to ${returnTo}`);
res.redirect(returnTo);
} else {
next();
}
next();
});

// router.get("/callback", passport.authenticate("openidconnect", {
Expand Down

0 comments on commit e4f4a72

Please sign in to comment.