Skip to content

Commit

Permalink
fix(logout): clear token cookie
Browse files Browse the repository at this point in the history
- clear token cookie on logout
  • Loading branch information
cgawron authored Nov 29, 2024
1 parent 7ce4d9e commit 09da740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ app.get('/logout', (req, res) => {
client_id: CLIENT_ID,
id_token_hint: token
});
res.clearCookie('token')
res.redirect(endSessionUrl)
}
else {
Expand Down Expand Up @@ -304,6 +305,7 @@ const doProxy = (req, res) => {
parseReqBody: false,
proxyReqPathResolver: function (req) {
const path = req.baseUrl.replace(PREFIX, '/v1');

return path;
},
proxyErrorHandler: function (err, res, next) {
Expand Down

0 comments on commit 09da740

Please sign in to comment.