@mattrglobal/verifier-sdk-web 2.0.3-unstable.46 → 2.0.3-unstable.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1859,13 +1859,16 @@ const getHashParamValue = (hash, param) => {
1859
1859
  };
1860
1860
 
1861
1861
  const createSession = async ({credentialQuery: credentialQuery, challenge: challenge, redirectUri: redirectUri, apiBaseUrl: apiBaseUrl, walletProviderId: walletProviderId, dcApiSupported: dcApiSupported, applicationId: applicationId}) => {
1862
+ const openid4VpConfiguration = !!walletProviderId || !!redirectUri ? {
1863
+ redirectUri: redirectUri,
1864
+ walletProviderId: walletProviderId
1865
+ } : undefined;
1862
1866
  const postData = {
1863
1867
  credentialQuery: credentialQuery,
1864
1868
  challenge: challenge,
1865
1869
  applicationId: applicationId,
1866
- redirectUri: redirectUri,
1867
- walletProviderId: walletProviderId,
1868
- dcApiSupported: dcApiSupported
1870
+ dcApiSupported: dcApiSupported,
1871
+ openid4VpConfiguration: openid4VpConfiguration
1869
1872
  };
1870
1873
  const responseResult = await safeFetch(`${apiBaseUrl}/v2/presentations/web/sessions`, {
1871
1874
  method: "POST",