Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Jan 23, 2025
1 parent a34596f commit d343b72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/credentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export default function Credentials(props:any) {
} else {
return (
<div>
<h4>Scan this QR code using your Sphereon Wallet app to retrieve the Verifiable Credential:</h4>
<h4>Scan this QR code using your Sphereon Wallet app to retrieve the Verifiable Credential:</h4>
<Box sx={{ display: 'flex', flexDirection: 'row', py: 2 }}>
<Canvas
text={qrCode}
Expand All @@ -214,7 +214,9 @@ export default function Credentials(props:any) {
}}
/>
</Box>
<Link href={qrCode}>{qrCode}</Link>
<Box sx={{ display: 'flex', flexDirection: 'row', py: 2 }}>
<Link href={qrCode}>If QR Code is not readable, click here.</Link>
</Box>
<Button variant="contained" onClick={back} startIcon={<div><ArrowBackIcon/></div>}>Back</Button>
</div>
)
Expand Down
1 change: 1 addition & 0 deletions pages/api/vp/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
try {
const verifiedAuthResponse = await rp.verifyAuthorizationResponse(payload, {
correlationId: doc._id,
state: req.body.state,
audience: url.protocol + "//" + url.hostname + "/api/vp/vp_response",
})
console.log(verifiedAuthResponse)
Expand Down

0 comments on commit d343b72

Please sign in to comment.