Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 47fb4fd

Browse files
committed
fix the logout flow
1 parent 152a21d commit 47fb4fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ app.post('/auth/openid/return',
314314

315315
// 'logout' route, logout from passport, and destroy the session with AAD.
316316
app.get('/logout', function(req, res){
317-
req.session = null;
317+
res.clearCookie('connect.sid');
318+
res.clearCookie('session');
319+
res.clearCookie('session.sig');
320+
res.redirect('/');
318321
});
319322

320323
function validateArray(userGroups, accessGroups) {

0 commit comments

Comments
 (0)