Skip to content

Commit 09da740

Browse files
authored
fix(logout): clear token cookie
- clear token cookie on logout
1 parent 7ce4d9e commit 09da740

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ app.get('/logout', (req, res) => {
9191
client_id: CLIENT_ID,
9292
id_token_hint: token
9393
});
94+
res.clearCookie('token')
9495
res.redirect(endSessionUrl)
9596
}
9697
else {
@@ -304,6 +305,7 @@ const doProxy = (req, res) => {
304305
parseReqBody: false,
305306
proxyReqPathResolver: function (req) {
306307
const path = req.baseUrl.replace(PREFIX, '/v1');
308+
307309
return path;
308310
},
309311
proxyErrorHandler: function (err, res, next) {

0 commit comments

Comments
 (0)