From c807267dc41fa1852462b15bf0bc07a269da9acd Mon Sep 17 00:00:00 2001 From: Nikos Triantafyllou Date: Thu, 25 Apr 2024 12:51:09 +0300 Subject: [PATCH] bug fix with multiple sesion generation --- routes/codeFlowJwtRoutes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/codeFlowJwtRoutes.js b/routes/codeFlowJwtRoutes.js index f515ff1..10c943c 100644 --- a/routes/codeFlowJwtRoutes.js +++ b/routes/codeFlowJwtRoutes.js @@ -100,7 +100,7 @@ codeFlowRouter.get("/authorize", async (req, res) => { // If validations pass, redirect with a 302 Found response const authorizationCode = null; //"SplxlOBeZQQYbYS6WxSbIA"; const codeSessions = getAuthCodeSessions(); - if (codeSessions.sessions.indexOf(issuerState)) { + if (codeSessions.sessions.indexOf(issuerState) >=0 ) { codeSessions.requests.push({ challenge: codeChallenge, method: codeChallengeMethod,