@mattrglobal/verifier-sdk-web 2.0.3-unstable.48 → 2.0.3-unstable.49
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 +4 -7
- package/dist/lib/verifier-js-no-deps.cjs.js.map +1 -1
- package/dist/lib/verifier-js.cjs.js +4 -7
- package/dist/lib/verifier-js.cjs.js.map +1 -1
- package/dist/verifier-js.development.js +4 -7
- 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
|
@@ -1980,8 +1980,7 @@
|
|
|
1980
1980
|
sessionId: sessionId,
|
|
1981
1981
|
sessionKey: sessionKey,
|
|
1982
1982
|
challenge: challenge,
|
|
1983
|
-
|
|
1984
|
-
data: parsedCredentialResponse.data
|
|
1983
|
+
response: parsedCredentialResponse
|
|
1985
1984
|
});
|
|
1986
1985
|
if (credentialVerificationResult.isErr()) {
|
|
1987
1986
|
return err({
|
|
@@ -2057,12 +2056,10 @@
|
|
|
2057
2056
|
});
|
|
2058
2057
|
};
|
|
2059
2058
|
const verifyCredentialResponse = async options => {
|
|
2060
|
-
const {apiBaseUrl: apiBaseUrl, sessionId: sessionId, sessionKey: sessionKey, challenge: challenge,
|
|
2061
|
-
const requestBody = {
|
|
2062
|
-
protocol: protocol,
|
|
2063
|
-
data: data,
|
|
2059
|
+
const {apiBaseUrl: apiBaseUrl, sessionId: sessionId, sessionKey: sessionKey, challenge: challenge, response: response} = options;
|
|
2060
|
+
const requestBody = Object.assign(Object.assign({}, response), {
|
|
2064
2061
|
challenge: challenge
|
|
2065
|
-
};
|
|
2062
|
+
});
|
|
2066
2063
|
const credentialVerificationResult = await safeFetch(`${apiBaseUrl}/v2/presentations/web/sessions/${sessionId}/dc-api/response`, {
|
|
2067
2064
|
method: "POST",
|
|
2068
2065
|
headers: {
|