Skip to content

Commit

Permalink
bug fix with multiple sesion generation
Browse files Browse the repository at this point in the history
  • Loading branch information
endimion committed Apr 25, 2024
1 parent 3547bb9 commit f9edbac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/codeFlowJwtRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ 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)) {
const codeSessions = getAuthCodeSessions();
codeSessions.requests.push({
challenge: codeChallenge,
method: codeChallengeMethod,
Expand All @@ -115,8 +115,8 @@ codeFlowRouter.get("/authorize", async (req, res) => {
status: "pending",
});
codeSessions.walletSessions.push(state); // push state as send by wallet
}else{
console.log("ITB session not found")
} else {
console.log("ITB session not found");
}

// codeSessions.sessions.push(issuerState);
Expand Down

0 comments on commit f9edbac

Please sign in to comment.