contentoh-components-library 21.0.33 → 21.0.34
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.
|
@@ -33,8 +33,6 @@ var _Loading = require("../../atoms/Loading");
|
|
|
33
33
|
|
|
34
34
|
var _reactRouterDom = require("react-router-dom");
|
|
35
35
|
|
|
36
|
-
var _awsAmplify = require("aws-amplify");
|
|
37
|
-
|
|
38
36
|
var _axios = _interopRequireDefault(require("axios"));
|
|
39
37
|
|
|
40
38
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -105,14 +103,14 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
105
103
|
}
|
|
106
104
|
|
|
107
105
|
if (!valid) {
|
|
108
|
-
_context.next =
|
|
106
|
+
_context.next = 34;
|
|
109
107
|
break;
|
|
110
108
|
}
|
|
111
109
|
|
|
112
110
|
_context.prev = 10;
|
|
113
111
|
setLoading(true);
|
|
114
112
|
_context.next = 14;
|
|
115
|
-
return
|
|
113
|
+
return props.Auth.signIn(email, password);
|
|
116
114
|
|
|
117
115
|
case 14:
|
|
118
116
|
session = _context.sent;
|
|
@@ -160,7 +158,7 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
160
158
|
}
|
|
161
159
|
|
|
162
160
|
case 26:
|
|
163
|
-
_context.next =
|
|
161
|
+
_context.next = 34;
|
|
164
162
|
break;
|
|
165
163
|
|
|
166
164
|
case 28:
|
|
@@ -168,6 +166,7 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
168
166
|
_context.t0 = _context["catch"](10);
|
|
169
167
|
console.log(_context.t0);
|
|
170
168
|
setLoading(false);
|
|
169
|
+
console.log("error 1");
|
|
171
170
|
|
|
172
171
|
if (_context.t0.code === "NotAuthorizedException") {
|
|
173
172
|
setSignInError("NotAuthorizedException");
|
|
@@ -177,9 +176,10 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
177
176
|
props.setPaso(5);
|
|
178
177
|
} else {
|
|
179
178
|
setSignInError("Error");
|
|
179
|
+
console.log("error 2");
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
case
|
|
182
|
+
case 34:
|
|
183
183
|
case "end":
|
|
184
184
|
return _context.stop();
|
|
185
185
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
|
|
9
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
10
|
+
|
|
11
|
+
var _App = _interopRequireDefault(require("./App.jsx"));
|
|
12
|
+
|
|
13
|
+
var _awsAmplify = _interopRequireDefault(require("aws-amplify"));
|
|
14
|
+
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
|
|
7
17
|
var _index = require("./components/atoms/ActivedFilter/index");
|
|
8
18
|
|
|
9
19
|
Object.keys(_index).forEach(function (key) {
|
|
@@ -795,4 +805,15 @@ Object.keys(_VerificationCodeResetPassword).forEach(function (key) {
|
|
|
795
805
|
return _VerificationCodeResetPassword[key];
|
|
796
806
|
}
|
|
797
807
|
});
|
|
798
|
-
});
|
|
808
|
+
});
|
|
809
|
+
|
|
810
|
+
_reactDom.default.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_App.default, {}), document.getElementById("root"));
|
|
811
|
+
|
|
812
|
+
_awsAmplify.default.configure({
|
|
813
|
+
Auth: {
|
|
814
|
+
region: "us-east-1",
|
|
815
|
+
userPoolId: process.env.REACT_APP_USER_POOL_ID,
|
|
816
|
+
userPoolWebClientId: process.env.REACT_APP_USER_POOL_WEB_CLIENT_ID,
|
|
817
|
+
mandatorySignIn: true
|
|
818
|
+
}
|
|
819
|
+
}); //atoms
|