@basiq/connect-auth 1.0.5 → 1.0.6
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/connect-auth.cjs.development.js +14 -11
- 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 +14 -11
- package/dist/connect-auth.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1096,7 +1096,7 @@ function AuthScreen(_ref) {
|
|
|
1096
1096
|
return function (_x) {
|
|
1097
1097
|
return _ref2.apply(this, arguments);
|
|
1098
1098
|
};
|
|
1099
|
-
}(), [smsCode, error, authRequestId]);
|
|
1099
|
+
}(), [smsCode, error, authRequestId, action, test]);
|
|
1100
1100
|
var buttons = [{
|
|
1101
1101
|
label: t('continue'),
|
|
1102
1102
|
onClick: function onClick() {
|
|
@@ -1217,25 +1217,28 @@ function App(props) {
|
|
|
1217
1217
|
React.useEffect(function () {
|
|
1218
1218
|
var getData = /*#__PURE__*/function () {
|
|
1219
1219
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1220
|
-
var
|
|
1220
|
+
var id, actionParam, response, _response$data, _response$data2, _response$data4, _response$data3, _response$data5;
|
|
1221
1221
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1222
1222
|
while (1) switch (_context.prev = _context.next) {
|
|
1223
1223
|
case 0:
|
|
1224
|
-
|
|
1225
|
-
|
|
1224
|
+
id = window.location.pathname.substring(1);
|
|
1225
|
+
actionParam = window.location.search.split('?action=')[1];
|
|
1226
|
+
if ((actionParam == null ? void 0 : actionParam.length) > 0) {
|
|
1227
|
+
setAction(actionParam);
|
|
1228
|
+
}
|
|
1226
1229
|
if (!((id == null ? void 0 : id.length) > 0)) {
|
|
1227
|
-
_context.next =
|
|
1230
|
+
_context.next = 12;
|
|
1228
1231
|
break;
|
|
1229
1232
|
}
|
|
1230
1233
|
setAuthId(id);
|
|
1231
1234
|
setLoading(true);
|
|
1232
|
-
_context.next =
|
|
1235
|
+
_context.next = 8;
|
|
1233
1236
|
return authUser({
|
|
1234
1237
|
authRequestId: id,
|
|
1235
1238
|
method: 'GET',
|
|
1236
1239
|
test: test
|
|
1237
1240
|
});
|
|
1238
|
-
case
|
|
1241
|
+
case 8:
|
|
1239
1242
|
response = _context.sent;
|
|
1240
1243
|
if (response != null && response.ok) {
|
|
1241
1244
|
setCurrentScreen(1);
|
|
@@ -1249,13 +1252,13 @@ function App(props) {
|
|
|
1249
1252
|
} else {
|
|
1250
1253
|
showErrorScreen(response == null ? void 0 : response.statusCode.toString());
|
|
1251
1254
|
}
|
|
1252
|
-
_context.next =
|
|
1255
|
+
_context.next = 13;
|
|
1253
1256
|
break;
|
|
1254
|
-
case 11:
|
|
1255
|
-
showErrorScreen('404');
|
|
1256
1257
|
case 12:
|
|
1257
|
-
|
|
1258
|
+
showErrorScreen('404');
|
|
1258
1259
|
case 13:
|
|
1260
|
+
setLoading(false);
|
|
1261
|
+
case 14:
|
|
1259
1262
|
case "end":
|
|
1260
1263
|
return _context.stop();
|
|
1261
1264
|
}
|