@mattrglobal/verifier-sdk-web 1.1.1-unstable.157 → 1.1.1-unstable.159
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/README.md
CHANGED
|
@@ -201,8 +201,10 @@ MATTRVerifierSDK.initialize({ apiBaseUrl, applicationId }); // Initialize the SD
|
|
|
201
201
|
const result = await MATTRVerifierSDK.requestCredentials({
|
|
202
202
|
credentialQuery: [credentialQuery], // Define what credential query to use
|
|
203
203
|
challenge: MATTRVerifierSDK.utils.generateChallenge(), // Pass a unique challenge
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
openid4vpConfiguration: {
|
|
205
|
+
walletProviderId, // Define the wallet identifier
|
|
206
|
+
redirectUri, // Define the redirect URI (not required for cross-device only requests)
|
|
207
|
+
}
|
|
206
208
|
});
|
|
207
209
|
|
|
208
210
|
if (result.isErr()) {
|
|
@@ -225,9 +227,11 @@ MATTRVerifierSDK.initialize({ apiBaseUrl, applicationId });
|
|
|
225
227
|
const result = await MATTRVerifierSDK.requestCredentials({
|
|
226
228
|
credentialQuery: [credentialQuery],
|
|
227
229
|
challenge: MATTRVerifierSDK.utils.generateChallenge(),
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
230
|
+
openid4vpConfiguration: {
|
|
231
|
+
redirectUri,
|
|
232
|
+
walletProviderId,
|
|
233
|
+
mode: "sameDevice",
|
|
234
|
+
}
|
|
231
235
|
});
|
|
232
236
|
|
|
233
237
|
// result can be retrieved on redirect uri page. for example
|
|
@@ -248,8 +252,10 @@ MATTRVerifierSDK.initialize({ apiBaseUrl, applicationId });
|
|
|
248
252
|
const result = await MATTRVerifierSDK.requestCredentials({
|
|
249
253
|
credentialQuery: [credentialQuery],
|
|
250
254
|
challenge: MATTRVerifierSDK.utils.generateChallenge(),
|
|
251
|
-
|
|
252
|
-
|
|
255
|
+
openid4vpConfiguration: {
|
|
256
|
+
walletProviderId,
|
|
257
|
+
mode: "crossDevice",
|
|
258
|
+
}
|
|
253
259
|
});
|
|
254
260
|
|
|
255
261
|
if (result.isErr()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mattrglobal/verifier-sdk-web",
|
|
3
|
-
"version": "1.1.1-unstable.
|
|
3
|
+
"version": "1.1.1-unstable.159+00c015b2",
|
|
4
4
|
"main": "dist/lib/verifier-js.cjs.js",
|
|
5
5
|
"types": "dist/typings/index.d.ts",
|
|
6
6
|
"module": "dist/verifier-js.production.esm.js",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"docs": "rm -rf generatedDoc/ && typedoc && cp CHANGELOG_PUBLIC.md generatedDoc/CHANGELOG.md",
|
|
31
31
|
"docs:html": "NAME=\"MATTR Verifier Web SDK\" ../../scripts/generateHtmlDocs.sh"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "00c015b23786081d68ceddd53c576ede66c594da"
|
|
34
34
|
}
|