Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Jan 24, 2025
1 parent 6db6e66 commit 814e140
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@veramo/utils": "^6.0.0",
"cors": "^2.8.5",
"did-jwt": "^8.0.4",
"did-jwt-vc": "^4.0.5",
"dockerode": "^3.3.5",
"dotenv": "^16.3.1",
"ethers": "^5.7.2",
Expand Down
2 changes: 1 addition & 1 deletion pages/api/vp/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
console.log('got to response');
const gnap = await nano.db.use("gnap");
const patients = await nano.db.use("patients");
console.log(req.body);
const {state} = req.body;
const q = {
selector: {
Expand All @@ -36,7 +37,6 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
const doc = response.docs[0];
const patient_doc = await patients.get(doc.email);
console.log(doc);
console.log(req.body);
const { payload } = decodeJWT(req.body.vp_token);
// try {
// const verifiedAuthResponse = await rp.verifyAuthorizationResponse(req.body.id_token, {
Expand Down

0 comments on commit 814e140

Please sign in to comment.