@mattrglobal/verifier-sdk-web 2.0.3-unstable.47 → 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.
- package/dist/lib/verifier-js-no-deps.cjs.js +6 -3
- package/dist/lib/verifier-js-no-deps.cjs.js.map +1 -1
- package/dist/lib/verifier-js.cjs.js +6 -3
- package/dist/lib/verifier-js.cjs.js.map +1 -1
- package/dist/verifier-js.development.js +6 -3
- package/dist/verifier-js.development.js.map +1 -1
- package/dist/verifier-js.production.esm.js +1 -1
- package/dist/verifier-js.production.esm.js.map +1 -1
- package/dist/verifier-js.production.js +1 -1
- package/dist/verifier-js.production.js.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
-
|
|
1867
|
-
|
|
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",
|