Skip to content

Commit

Permalink
fix: logout
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Nov 4, 2022
1 parent 4f4c17f commit c23027d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/medusa-plugin-auth/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ function getLogoutRouter(configModule: ConfigModule): Router {

const logoutHandler = async (req, res) => {
if (req.session) {
req.session.destroy()
req.session.jwt = {}
req.session.destroy()
}

res.clearCookie(AUTH_TOKEN_COOKIE_NAME);
Expand Down

0 comments on commit c23027d

Please sign in to comment.