@basiq/connect-auth 0.1.86 → 0.1.87
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/{BasiqConnect.d.ts → components/BasiqConnect.d.ts} +1 -1
- package/dist/connect-auth.cjs.development.js +6 -3
- package/dist/connect-auth.cjs.development.js.map +1 -1
- package/dist/connect-auth.cjs.production.min.js +1 -1
- package/dist/connect-auth.cjs.production.min.js.map +1 -1
- package/dist/connect-auth.esm.js +6 -3
- package/dist/connect-auth.esm.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -3
package/dist/connect-auth.esm.js
CHANGED
|
@@ -940,7 +940,7 @@ var authUser = /*#__PURE__*/function () {
|
|
|
940
940
|
return _context2.abrupt("return", {
|
|
941
941
|
headers: result.headers,
|
|
942
942
|
statusCode: result.status,
|
|
943
|
-
error: _json.message || result.statusText || 'Something went wrong',
|
|
943
|
+
error: (_json == null ? void 0 : _json.message) || result.statusText || 'Something went wrong',
|
|
944
944
|
ok: false
|
|
945
945
|
});
|
|
946
946
|
|
|
@@ -1009,7 +1009,8 @@ function StartScreen(props) {
|
|
|
1009
1009
|
var onContinue = props.onContinue,
|
|
1010
1010
|
appName = props.appName,
|
|
1011
1011
|
shadow = props.shadow,
|
|
1012
|
-
authId = props.authId
|
|
1012
|
+
authId = props.authId,
|
|
1013
|
+
showErrorScreen = props.showErrorScreen;
|
|
1013
1014
|
|
|
1014
1015
|
var _useState = useState(false),
|
|
1015
1016
|
loading = _useState[0],
|
|
@@ -1039,9 +1040,11 @@ function StartScreen(props) {
|
|
|
1039
1040
|
case 4:
|
|
1040
1041
|
response = _context.sent;
|
|
1041
1042
|
|
|
1042
|
-
if (
|
|
1043
|
+
if (response != null && (_response$data = response.data) != null && _response$data.ok) {
|
|
1043
1044
|
setLoading(false);
|
|
1044
1045
|
onContinue();
|
|
1046
|
+
} else {
|
|
1047
|
+
showErrorScreen(response == null ? void 0 : response.statusCode.toString());
|
|
1045
1048
|
}
|
|
1046
1049
|
|
|
1047
1050
|
case 6:
|