DEV Community

Vimal
Vimal

Posted on

Session logout from RP

// Logout route
app.get('/logout', (req, res) => {
// Perform OIDC logout
req.logout();
res.redirect(client.endSessionUrl({
post_logout_redirect_uri: 'http://localhost:3000', // Redirect after logout
}));
});

Top comments (0)