@moonpay/platform-sdk-react-native 1.30.0 → 1.31.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
@@ -12,6 +12,7 @@ import {
12
12
  applyResumeParam,
13
13
  decryptCredentials,
14
14
  FRAME_PATHS,
15
+ isAuthResult,
15
16
  presentationParams,
16
17
  themeParams
17
18
  } from "@moonpay/platform-sdk-core";
@@ -284,10 +285,7 @@ var authSpec = {
284
285
  return { kind: "error", payload: msg.payload };
285
286
  case "complete": {
286
287
  const connection = msg.payload;
287
- if (connection.status === ConnectionStatus.active || connection.status === ConnectionStatus.pending || connection.status === ConnectionStatus.termsAcceptanceRequired) {
288
- return { kind: "complete", payload: msg.payload };
289
- }
290
- return null;
288
+ return isAuthResult(connection) ? { kind: "complete", payload: connection } : null;
291
289
  }
292
290
  default:
293
291
  return null;