@webiny/app-admin-cognito 5.18.1 → 5.18.3

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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +11 -11
package/index.js CHANGED
@@ -18,6 +18,7 @@ import ForgotPassword from "./views/ForgotPassword";
18
18
  import SetNewPassword from "./views/SetNewPassword";
19
19
  import SignedIn from "./views/SignedIn";
20
20
  import { useSecurity } from "@webiny/app-security";
21
+ import { config as appConfig } from "@webiny/app/config";
21
22
 
22
23
  var createApolloLinkPlugin = function createApolloLinkPlugin() {
23
24
  return new ApolloLinkPlugin(function () {
@@ -78,9 +79,9 @@ var createApolloLinkPlugin = function createApolloLinkPlugin() {
78
79
  };
79
80
 
80
81
  var defaultOptions = {
81
- region: process.env.REACT_APP_USER_POOL_REGION,
82
- userPoolId: process.env.REACT_APP_USER_POOL_ID,
83
- userPoolWebClientId: process.env.REACT_APP_USER_POOL_WEB_CLIENT_ID
82
+ region: appConfig.getKey("USER_POOL_REGION", process.env.REACT_APP_USER_POOL_REGION),
83
+ userPoolId: appConfig.getKey("USER_POOL_ID", process.env.REACT_APP_USER_POOL_ID),
84
+ userPoolWebClientId: appConfig.getKey("USER_POOL_WEB_CLIENT_ID", process.env.REACT_APP_USER_POOL_WEB_CLIENT_ID)
84
85
  };
85
86
  export var createAuthentication = function createAuthentication(_ref3) {
86
87
  var getIdentityData = _ref3.getIdentityData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/app-admin-cognito",
3
- "version": "5.18.1",
3
+ "version": "5.18.3",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,13 +15,13 @@
15
15
  "@apollo/react-hooks": "3.1.5",
16
16
  "@aws-amplify/auth": "4.3.16",
17
17
  "@emotion/styled": "10.0.27",
18
- "@webiny/app": "5.18.1",
19
- "@webiny/app-cognito-authenticator": "5.18.1",
20
- "@webiny/app-security": "5.18.1",
21
- "@webiny/form": "5.18.1",
22
- "@webiny/plugins": "5.18.1",
23
- "@webiny/ui": "5.18.1",
24
- "@webiny/validation": "5.18.1",
18
+ "@webiny/app": "5.18.3",
19
+ "@webiny/app-cognito-authenticator": "5.18.3",
20
+ "@webiny/app-security": "5.18.3",
21
+ "@webiny/form": "5.18.3",
22
+ "@webiny/plugins": "5.18.3",
23
+ "@webiny/ui": "5.18.3",
24
+ "@webiny/validation": "5.18.3",
25
25
  "apollo-client": "2.6.10",
26
26
  "apollo-link-context": "1.0.20",
27
27
  "emotion": "10.0.27",
@@ -36,8 +36,8 @@
36
36
  "@babel/preset-env": "^7.5.5",
37
37
  "@babel/preset-react": "^7.0.0",
38
38
  "@babel/preset-typescript": "^7.8.3",
39
- "@webiny/cli": "^5.18.1",
40
- "@webiny/project-utils": "^5.18.1",
39
+ "@webiny/cli": "^5.18.3",
40
+ "@webiny/project-utils": "^5.18.3",
41
41
  "babel-plugin-lodash": "^3.3.4",
42
42
  "rimraf": "^3.0.2",
43
43
  "ttypescript": "^1.5.12",
@@ -58,5 +58,5 @@
58
58
  ]
59
59
  }
60
60
  },
61
- "gitHead": "6d6f6965b39a978e933b2d0e82d5d9531093316f"
61
+ "gitHead": "3ccdb07d10c57086a63eb42ba7484e17bc388297"
62
62
  }