File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ export class CredentialOfferClient {
4747 if ( uri . includes ( 'credential_offer_uri' ) ) {
4848 const uriObj = getURIComponentsAsArray ( uri ) as unknown as Record < string , string > // FIXME
4949 const credentialOfferUri = uriObj [ 'credential_offer_uri' ]
50- const response = await fetch ( decodeURIComponent ( credentialOfferUri ) )
50+ const decodedUri = decodeURIComponent ( credentialOfferUri ) ;
51+ const response = await fetch ( decodedUri )
5152 if ( ! ( response && response . status >= 200 && response . status < 400 ) ) {
5253 return Promise . reject ( `the credential offer URI endpoint call was not successful. http code ${ response . status } - reason ${ response . statusText } ` )
5354 }
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ export class CredentialOfferClientV1_0_13 {
2929 if ( uri . includes ( 'credential_offer_uri' ) ) { // FIXME deduplicate
3030 const uriObj = getURIComponentsAsArray ( uri ) as unknown as Record < string , string > // FIXME
3131 const credentialOfferUri = uriObj [ 'credential_offer_uri' ]
32- const response = await fetch ( credentialOfferUri )
32+ const decodedUri = decodeURIComponent ( credentialOfferUri ) ;
33+ const response = await fetch ( decodedUri )
3334 if ( ! ( response && response . status >= 200 && response . status < 400 ) ) {
3435 return Promise . reject ( `the credential offer URI endpoint call was not successful. http code ${ response . status } - reason ${ response . statusText } ` )
3536 }
You can’t perform that action at this time.
0 commit comments