@moonpay/platform-sdk-react-native 1.14.0 → 1.15.1

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
@@ -7,6 +7,7 @@ import {
7
7
  ConnectionStatus
8
8
  } from "@moonpay/platform-protocol/models/connection";
9
9
  import {
10
+ applyClientTokenParam,
10
11
  applyPresentationParam,
11
12
  decryptCredentials,
12
13
  FRAME_PATHS,
@@ -398,10 +399,13 @@ var challengeSpec = {
398
399
  // documentation only — buildUrl below wins
399
400
  hidden: false,
400
401
  resolveChannelId: (props, generated) => new URL(props.url).searchParams.get("channelId") || generated,
401
- buildUrl: (_ctx, props, channelId) => {
402
+ buildUrl: (ctx, props, channelId) => {
402
403
  const url = new URL(props.url);
403
404
  url.searchParams.set("channelId", channelId);
404
- return applyPresentationParam(url.toString(), props.presentation);
405
+ return applyClientTokenParam(
406
+ applyPresentationParam(url.toString(), props.presentation),
407
+ ctx.core.context.clientToken
408
+ );
405
409
  },
406
410
  mapMessage: (msg) => {
407
411
  switch (msg.kind) {