@moonpay/platform-sdk-react-native 1.18.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.cjs CHANGED
@@ -481,7 +481,11 @@ var connectionResetSpec = {
481
481
  path: import_platform_sdk_core.FRAME_PATHS.reset,
482
482
  hidden: true,
483
483
  handshakeTimeout: 5e3,
484
- buildParams: (ctx) => ({ sessionToken: requireSessionToken(ctx) }),
484
+ // The reset frame is authorized by the connect-flow `clientToken` (or an
485
+ // apiKey), not the raw sessionToken — see the Reset frame reference. It
486
+ // carries no session of its own. Attached automatically from context; when
487
+ // absent the frame simply fails to load and reset resolves as a no-op.
488
+ buildParams: (ctx) => ({ clientToken: ctx.core.context.clientToken }),
485
489
  mapMessage: (msg) => {
486
490
  if (msg.kind === "complete") return { kind: "complete" };
487
491
  if (msg.kind === "error") {
@@ -528,6 +532,7 @@ function MoonPayFrame({
528
532
  allowsInlineMediaPlayback: true,
529
533
  javaScriptEnabled: true,
530
534
  domStorageEnabled: true,
535
+ paymentRequestEnabled: true,
531
536
  style: { flex: 1 },
532
537
  ...webViewProps,
533
538
  ref: webViewRef,