@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
|
@@ -2141,8 +2141,7 @@ const requestCredentialsWithDigitalCredentialsApi = async options => {
|
|
|
2141
2141
|
sessionId: sessionId,
|
|
2142
2142
|
sessionKey: sessionKey,
|
|
2143
2143
|
challenge: challenge,
|
|
2144
|
-
|
|
2145
|
-
data: parsedCredentialResponse.data
|
|
2144
|
+
response: parsedCredentialResponse
|
|
2146
2145
|
});
|
|
2147
2146
|
if (credentialVerificationResult.isErr()) {
|
|
2148
2147
|
return err({
|
|
@@ -2221,12 +2220,10 @@ const parseCredentialResponse = credentialResponse => {
|
|
|
2221
2220
|
};
|
|
2222
2221
|
|
|
2223
2222
|
const verifyCredentialResponse = async options => {
|
|
2224
|
-
const {apiBaseUrl: apiBaseUrl, sessionId: sessionId, sessionKey: sessionKey, challenge: challenge,
|
|
2225
|
-
const requestBody = {
|
|
2226
|
-
protocol: protocol,
|
|
2227
|
-
data: data,
|
|
2223
|
+
const {apiBaseUrl: apiBaseUrl, sessionId: sessionId, sessionKey: sessionKey, challenge: challenge, response: response} = options;
|
|
2224
|
+
const requestBody = Object.assign(Object.assign({}, response), {
|
|
2228
2225
|
challenge: challenge
|
|
2229
|
-
};
|
|
2226
|
+
});
|
|
2230
2227
|
const credentialVerificationResult = await safeFetch(`${apiBaseUrl}/v2/presentations/web/sessions/${sessionId}/dc-api/response`, {
|
|
2231
2228
|
method: "POST",
|
|
2232
2229
|
headers: {
|