Skip to content

Commit

Permalink
debug logs for itb
Browse files Browse the repository at this point in the history
  • Loading branch information
endimion committed Apr 25, 2024
1 parent a4744c1 commit a944be7
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions routes/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,6 @@ router.post("/credential", async (req, res) => {
c_nonce_expires_in: 86400,
});
}


});
//issuerConfig.credential_endpoint = serverURL + "/credential";

Expand All @@ -264,6 +262,12 @@ router.get(["/issueStatus"], (req, res) => {
codeSessions.requests
);
if (result) {
console.log("wi9ll send result");
console.log({
status: result,
reason: "ok",
sessionId: sessionId,
});
res.json({
status: result,
reason: "ok",
Expand All @@ -290,11 +294,11 @@ function checkIfExistsIssuanceStatus(
console.log(index);
if (index >= 0) {
let status = sessionResults[index].status;
// console.log(`sending status ${status} for session ${sessionId}`);
// console.log(`new sessions`);
// console.log(sessions);
// console.log("new session statuses");
// console.log(sessionResults);
console.log(`sending status ${status} for session ${sessionId}`);
console.log(`new sessions`);
console.log(sessions);
console.log("new session statuses");
console.log(sessionResults);
if (status === "success") {
sessions.splice(index, 1);
sessionResults.splice(index, 1);
Expand Down

0 comments on commit a944be7

Please sign in to comment.