@moonpay/platform-sdk-react-native 1.19.0 → 1.20.0

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/index.js CHANGED
@@ -441,7 +441,11 @@ var connectionResetSpec = {
441
441
  path: FRAME_PATHS.reset,
442
442
  hidden: true,
443
443
  handshakeTimeout: 5e3,
444
- buildParams: (ctx) => ({ sessionToken: requireSessionToken(ctx) }),
444
+ // The reset frame is authorized by the connect-flow `clientToken` (or an
445
+ // apiKey), not the raw sessionToken — see the Reset frame reference. It
446
+ // carries no session of its own. Attached automatically from context; when
447
+ // absent the frame simply fails to load and reset resolves as a no-op.
448
+ buildParams: (ctx) => ({ clientToken: ctx.core.context.clientToken }),
445
449
  mapMessage: (msg) => {
446
450
  if (msg.kind === "complete") return { kind: "complete" };
447
451
  if (msg.kind === "error") {
@@ -488,6 +492,7 @@ function MoonPayFrame({
488
492
  allowsInlineMediaPlayback: true,
489
493
  javaScriptEnabled: true,
490
494
  domStorageEnabled: true,
495
+ paymentRequestEnabled: true,
491
496
  style: { flex: 1 },
492
497
  ...webViewProps,
493
498
  ref: webViewRef,