Skip to content

Commit

Permalink
Merge pull request #134 from CartoonIsArt/gom
Browse files Browse the repository at this point in the history
Logout구현
  • Loading branch information
droplet92 committed Mar 21, 2021
2 parents 09ab74d + ff99d0a commit 674e990
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/controllers/authenticationToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,11 @@ export const Logout = async (ctx, next) => {

// 2. Delete access token from user's browser
ctx.cookies.set('accessToken')

/* 로그아웃 완료 응답 */
ctx.response.status = 204
}
catch (e) {
ctx.throw(400, e)
}

/* 로그아웃 완료 응답 */
ctx.response.status = 204
ctx.redirect("/login")
}

0 comments on commit 674e990

Please sign in to comment.