@mattrglobal/verifier-sdk-web 2.2.1-unstable.42 → 2.2.1-unstable.44

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.
@@ -7,7 +7,7 @@
7
7
  * Do Not Translate or Localize
8
8
  *
9
9
  * Bundle of @mattrglobal/verifier-sdk-web
10
- * Generated: 2026-07-07
10
+ * Generated: 2026-07-09
11
11
  * Version: 2.2.0
12
12
  * Dependencies:
13
13
  *
@@ -2248,7 +2248,7 @@ const requestCredentials = async options => {
2248
2248
  }
2249
2249
  assertType(RequestCredentialsOptionsValidator, "Invalid request credential options")(options);
2250
2250
  const {apiBaseUrl: apiBaseUrl, applicationId: applicationId} = initializeOptions;
2251
- const {challenge: challenge = generateChallenge(), credentialQuery: credentialQuery, openid4vpConfiguration: openid4vpConfiguration, state: state} = options;
2251
+ const {challenge: challenge = generateChallenge(), credentialQuery: credentialQuery, openid4vpConfiguration: openid4vpConfiguration, state: state, onSessionCreate: onSessionCreate} = options;
2252
2252
  const dcApiSupported = isDigitalCredentialsApiSupported();
2253
2253
  const openId4VpRedirectUri = deriveOpenId4vpRedirectUri(openid4vpConfiguration);
2254
2254
  const createSessionResult = await createSession({
@@ -2270,6 +2270,11 @@ const requestCredentials = async options => {
2270
2270
  }
2271
2271
  const session = createSessionResult.value;
2272
2272
  const {sessionKey: sessionKey, sessionId: sessionId} = session;
2273
+ if (onSessionCreate) {
2274
+ try {
2275
+ await onSessionCreate(session);
2276
+ } catch (_b) {}
2277
+ }
2273
2278
  if (session.type === SessionType.DigitalCredentialsApi) {
2274
2279
  const {request: request, sessionTtl: sessionTtl} = session;
2275
2280
  return await requestCredentialsWithDigitalCredentialsApi({