fixing check sso
This commit is contained in:
parent
28bd3a0a9e
commit
e3fc035a07
1 changed files with 6 additions and 0 deletions
6
sso.js
6
sso.js
|
|
@ -85,6 +85,12 @@ app.post("/api/v1/sso/kcauth", async (req, res) => {
|
|||
|
||||
const cookies = req.cookies;
|
||||
const tokenSSO = cookies[cookieName];
|
||||
|
||||
if (!tokenSSO) {
|
||||
res.status(401).send("Unauthorized");
|
||||
return;
|
||||
}
|
||||
|
||||
const oldssotoken = cookies['oldssotoken'];
|
||||
|
||||
if (tokenSSO !== oldssotoken) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue