@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
package/dist/connect-auth.esm.js
CHANGED
|
@@ -1088,7 +1088,7 @@ function AuthScreen(_ref) {
|
|
|
1088
1088
|
return function (_x) {
|
|
1089
1089
|
return _ref2.apply(this, arguments);
|
|
1090
1090
|
};
|
|
1091
|
-
}(), [smsCode, error, authRequestId]);
|
|
1091
|
+
}(), [smsCode, error, authRequestId, action, test]);
|
|
1092
1092
|
var buttons = [{
|
|
1093
1093
|
label: t('continue'),
|
|
1094
1094
|
onClick: function onClick() {
|
|
@@ -1209,25 +1209,28 @@ function App(props) {
|
|
|
1209
1209
|
useEffect(function () {
|
|
1210
1210
|
var getData = /*#__PURE__*/function () {
|
|
1211
1211
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1212
|
-
var
|
|
1212
|
+
var id, actionParam, response, _response$data, _response$data2, _response$data4, _response$data3, _response$data5;
|
|
1213
1213
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
1214
1214
|
while (1) switch (_context.prev = _context.next) {
|
|
1215
1215
|
case 0:
|
|
1216
|
-
|
|
1217
|
-
|
|
1216
|
+
id = window.location.pathname.substring(1);
|
|
1217
|
+
actionParam = window.location.search.split('?action=')[1];
|
|
1218
|
+
if ((actionParam == null ? void 0 : actionParam.length) > 0) {
|
|
1219
|
+
setAction(actionParam);
|
|
1220
|
+
}
|
|
1218
1221
|
if (!((id == null ? void 0 : id.length) > 0)) {
|
|
1219
|
-
_context.next =
|
|
1222
|
+
_context.next = 12;
|
|
1220
1223
|
break;
|
|
1221
1224
|
}
|
|
1222
1225
|
setAuthId(id);
|
|
1223
1226
|
setLoading(true);
|
|
1224
|
-
_context.next =
|
|
1227
|
+
_context.next = 8;
|
|
1225
1228
|
return authUser({
|
|
1226
1229
|
authRequestId: id,
|
|
1227
1230
|
method: 'GET',
|
|
1228
1231
|
test: test
|
|
1229
1232
|
});
|
|
1230
|
-
case
|
|
1233
|
+
case 8:
|
|
1231
1234
|
response = _context.sent;
|
|
1232
1235
|
if (response != null && response.ok) {
|
|
1233
1236
|
setCurrentScreen(1);
|
|
@@ -1241,13 +1244,13 @@ function App(props) {
|
|
|
1241
1244
|
} else {
|
|
1242
1245
|
showErrorScreen(response == null ? void 0 : response.statusCode.toString());
|
|
1243
1246
|
}
|
|
1244
|
-
_context.next =
|
|
1247
|
+
_context.next = 13;
|
|
1245
1248
|
break;
|
|
1246
|
-
case 11:
|
|
1247
|
-
showErrorScreen('404');
|
|
1248
1249
|
case 12:
|
|
1249
|
-
|
|
1250
|
+
showErrorScreen('404');
|
|
1250
1251
|
case 13:
|
|
1252
|
+
setLoading(false);
|
|
1253
|
+
case 14:
|
|
1251
1254
|
case "end":
|
|
1252
1255
|
return _context.stop();
|
|
1253
1256
|
}
|