diff --git a/index.js b/index.js index 1408800..ae45967 100644 --- a/index.js +++ b/index.js @@ -129,10 +129,12 @@ app.get(process.env.CALLBACK_URL, async (req, res, next) => { app.post("/logout", async (req, res, next) => { try { + const id_token_hint = req.session.idtoken; req.session = null; const client = await getMcpClient(); const redirectUrl = client.endSessionUrl({ post_logout_redirect_uri: `${origin}/`, + id_token_hint, }); res.redirect(redirectUrl); diff --git a/views/index.ejs b/views/index.ejs index 5a933d8..e13a46d 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -34,17 +34,6 @@ } -