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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay