Skip to content

Commit

Permalink
sso error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pbc1017 committed Dec 19, 2023
1 parent c5d6ef1 commit 242160a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion back/routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ router.get("/logout", (req, res) => {
if (req.query.userId) {
const logoutUrl = client.getLogoutUrl(
req.query.userId,
"https://clubs.sparcs.org"
process.env.FRONTEND_URL
);
req.session.destroy(); // 세션을 삭제합니다.
console.log(logoutUrl);
Expand All @@ -61,4 +61,8 @@ router.get("/welcome", (req, res) => {
}
});

router.get("/front", async (req, res) => {
res.json({ front: process.env.FRONTEND_URL });
});

module.exports = router;

0 comments on commit 242160a

Please sign in to comment.