contentoh-components-library 21.0.27 → 21.0.28

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,6 +33,10 @@ 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
+ var _axios = _interopRequireDefault(require("axios"));
39
+
36
40
  var _jsxRuntime = require("react/jsx-runtime");
37
41
 
38
42
  var SignInLogin = function SignInLogin(props) {
@@ -108,7 +112,7 @@ var SignInLogin = function SignInLogin(props) {
108
112
  _context.prev = 10;
109
113
  setLoading(true);
110
114
  _context.next = 14;
111
- return Auth.signIn(email, password);
115
+ return _awsAmplify.Auth.signIn(email, password);
112
116
 
113
117
  case 14:
114
118
  session = _context.sent;
@@ -126,7 +130,7 @@ var SignInLogin = function SignInLogin(props) {
126
130
  case 20:
127
131
  userGroup = session.signInUserSession.accessToken.payload["cognito:groups"];
128
132
  _context.next = 23;
129
- return axios.get(process.env.REACT_APP_USER_ENDPOINT, {
133
+ return _axios.default.get(process.env.REACT_APP_USER_ENDPOINT, {
130
134
  headers: {
131
135
  Authorization: session.signInUserSession.idToken.jwtToken
132
136
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.0.27",
3
+ "version": "21.0.28",
4
4
  "dependencies": {
5
5
  "@babel/runtime": "^7.17.2",
6
6
  "@storybook/addon-postcss": "^2.0.0",
7
7
  "@testing-library/jest-dom": "^5.11.4",
8
8
  "@testing-library/react": "^11.1.0",
9
9
  "@testing-library/user-event": "^12.1.10",
10
- "auth": "^0.0.9",
10
+ "aws-amplify": "^4.3.21",
11
11
  "axios": "^0.25.0",
12
12
  "babel-preset-react-app": "^10.0.1",
13
13
  "chart.js": "^3.7.1",
@@ -69,6 +69,7 @@
69
69
  "@storybook/addon-essentials": "^6.4.1",
70
70
  "@storybook/addon-links": "^6.4.1",
71
71
  "@storybook/react": "^6.4.1",
72
+ "auth": "^0.0.9",
72
73
  "auto": "^10.36.5",
73
74
  "babel-loader": "^8.2.3",
74
75
  "chromatic": "^6.3.3",
@@ -8,6 +8,8 @@ import { FontFamily, GlobalColors } from "../../../global-files/variables";
8
8
  import { useState, useEffect } from "react";
9
9
  import { Loading } from "../../atoms/Loading";
10
10
  import { Redirect } from "react-router-dom";
11
+ import { Auth } from "aws-amplify";
12
+ import axios from "axios";
11
13
 
12
14
  export const SignInLogin = (props) => {
13
15
  const [emptyEmail, setEmptyEmail] = useState(false);
@@ -152,7 +154,9 @@ export const SignInLogin = (props) => {
152
154
  id={"chk-default"}
153
155
  className="active-left"
154
156
  />
155
- <p onClick={() => props.setPaso(10)} className="active-right">Olvide mi contraseña</p>
157
+ <p onClick={() => props.setPaso(10)} className="active-right">
158
+ Olvide mi contraseña
159
+ </p>
156
160
  </div>
157
161
  {showErrors && signInError === "NotAuthorizedException" && (
158
162
  <label>Correo o contraseña incorrectos</label>