@moonpay/platform-sdk-react-native 1.30.0 → 1.31.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/README.md +1 -1
- package/dist/index.cjs +1 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
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
|
-
|
|
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;
|