Skip to content

Commit

Permalink
style: prettier write
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Mar 29, 2024
1 parent c119ab6 commit 064b736
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ app.use(
cookieSession({
name: "mcp_session",
keys: ["key1", "key2"],
}),
})
);
app.use(morgan("combined"));

Expand Down Expand Up @@ -86,14 +86,14 @@ app.post(
"/select-organization",
getAuthorizationControllerFactory({
prompt: "select_organization",
}),
})
);

app.post(
"/update-userinfo",
getAuthorizationControllerFactory({
prompt: "update_userinfo",
}),
})
);

app.post(
Expand All @@ -103,7 +103,7 @@ app.post(
prompt: "login",
// alternatively, you can use the 'max_age: 0'
// if so, claims parameter is not necessary as auth_time will be returned
}),
})
);

app.get(process.env.CALLBACK_URL, async (req, res, next) => {
Expand All @@ -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.idtoken = tokenSet.claims();
req.session.id_token_hint = tokenSet.id_token;

res.redirect("/");
Expand Down

0 comments on commit 064b736

Please sign in to comment.