Skip to content

Commit

Permalink
feat: remove non documented custom style + add token hint for logout
Browse files Browse the repository at this point in the history
  • Loading branch information
rdubigny committed Mar 22, 2024
1 parent 81602e1 commit dd56279
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
11 changes: 0 additions & 11 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,6 @@
}
</style>
<link rel="stylesheet" href="<%= locals.stylesheet_url %>"/>
<style>
:root {
--b-link: #000091;
}
a {
text-decoration: underline;
}
a:hover, a:focus {
text-decoration: none;
}
</style>
</head>
<body>
<main>
Expand Down

0 comments on commit dd56279

Please sign in to comment.