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 f9edbac commit c807267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/codeFlowJwtRoutes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c807267

Please sign in to comment.