File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ export async function toVpr({authorizationRequest, strict = false} = {}) {
108108 client_id,
109109 client_metadata,
110110 nonce,
111- presentation_definition
111+ presentation_definition,
112+ response_uri
112113 } = authorizationRequest ;
113114
114115 // disallow unsupported `submission_requirements` in strict mode
@@ -136,9 +137,9 @@ export async function toVpr({authorizationRequest, strict = false} = {}) {
136137 }
137138 }
138139
139- // map `client_id` to `domain`
140- if ( client_id !== undefined ) {
141- verifiablePresentationRequest . domain = client_id ;
140+ // map `response_uri` or ` client_id` to `domain`
141+ if ( response_uri !== undefined || client_id !== undefined ) {
142+ verifiablePresentationRequest . domain = response_uri ?? client_id ;
142143 }
143144
144145 // map `nonce` to `challenge`
You can’t perform that action at this time.
0 commit comments