Skip to content

Commit

Permalink
chore: 로그아웃 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
Xvezda committed Apr 27, 2024
1 parent 00886ef commit db7a90f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/api/src/services/auth/v1/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,6 @@ app.use('*', cors({
}));

app.get('/logout', withPrevUrl, async (c) => {
const sessionId = getCookie(c, 'session_id');
if (!sessionId) {
return c.redirect(c.var.prevUrl);
}
/*
const url = new URL('https://nid.naver.com/oauth2.0/token');
url.searchParams.append('grant_type', 'delete');
Expand All @@ -283,6 +279,7 @@ app.get('/logout', withPrevUrl, async (c) => {
*/

deleteCookie(c, 'session_id');
deleteCookie(c, 'session_sid');

return c.redirect(c.var.prevUrl);
});
Expand Down

0 comments on commit db7a90f

Please sign in to comment.