diff --git a/index.js b/index.js index ae45967..0a59bef 100644 --- a/index.js +++ b/index.js @@ -118,7 +118,7 @@ app.get(process.env.CALLBACK_URL, async (req, res, next) => { req.session.nonce = null; req.session.state = null; req.session.userinfo = await client.userinfo(tokenSet.access_token); - req.session.idtoken = tokenSet.claims(); + req.session.id_token = tokenSet.id_token; req.session.oauth2token = tokenSet; res.redirect("/"); @@ -129,7 +129,7 @@ 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; + const id_token_hint = req.session.id_token; req.session = null; const client = await getMcpClient(); const redirectUrl = client.endSessionUrl({