Skip to content

Commit f9faa3d

Browse files
committed
debug
1 parent dae8fba commit f9faa3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export const rp = (type:string, id:string) => {
144144
// return RP.builder({ requestVersion: SupportedVersion.SIOPv2_ID1 })
145145
.withClientId(identifier.did)
146146
.withScope('openid')
147-
.withResponseType('vp_token')
147+
.withResponseType('vp_token id_token')
148148
.withResponseMode(ResponseMode.POST)
149149
.withAuthorizationEndpoint(url_auth)
150150
.withRedirectUri(url_res)

pages/api/vp/response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
4444
const verifiedAuthResponse = await rp(doc.vc_type, doc.vc_id).verifyAuthorizationResponse(req.body.vp_token, {
4545
correlationId: doc._id,
4646
// state: doc.vp_state,
47-
// nonce: doc.vp_nonce,
47+
nonce: doc.vp_nonce,
4848
audience: url.protocol + "//" + url.hostname + "/api/vp/vp_response",
4949
})
5050
console.log(verifiedAuthResponse)

0 commit comments

Comments
 (0)