diff --git a/services/ui-src/package.json b/services/ui-src/package.json index e44d91c74..ba9eb39b7 100644 --- a/services/ui-src/package.json +++ b/services/ui-src/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { + "@aws-amplify/rtn-web-browser": "^1.0.28", "@cmsgov/design-system": "^3.8.0", "@fortawesome/fontawesome-svg-core": "^6.6.0", "@fortawesome/free-solid-svg-icons": "^6.6.0", diff --git a/services/ui-src/src/index.jsx b/services/ui-src/src/index.jsx index d19c8fbee..861b6daa4 100644 --- a/services/ui-src/src/index.jsx +++ b/services/ui-src/src/index.jsx @@ -7,7 +7,6 @@ import store from "./store/storeIndex"; import BrowserIssue from "./components/layout/BrowserIssue"; import App from "./App"; import { Amplify } from "aws-amplify"; -import "aws-amplify/auth/enable-oauth-listener"; import config from "./config"; import { asyncWithLDProvider } from "launchdarkly-react-client-sdk"; @@ -19,10 +18,8 @@ const isEdge = !isIE && !!window.StyleMedia; Amplify.configure({ Storage: { - S3: { - region: config.s3.REGION, - bucket: config.s3.BUCKET, - }, + region: config.s3.REGION, + bucket: config.s3.BUCKET, }, API: { REST: { diff --git a/services/ui-src/yarn.lock b/services/ui-src/yarn.lock index e81438a75..030403c73 100644 --- a/services/ui-src/yarn.lock +++ b/services/ui-src/yarn.lock @@ -124,6 +124,11 @@ resolved "https://registry.yarnpkg.com/@aws-amplify/plugin-types/-/plugin-types-0.9.0.tgz#45a3361bac7fcb74d0ceecabe84f0627d0812a89" integrity sha512-dOwuyjRWKHvKSxcCwycdBTb6clRr2/soW1hL+HaXyTN69+dQanQegpS6ylmVwbPPiy9q2LCbqaw+5Np7bacLgw== +"@aws-amplify/rtn-web-browser@^1.0.28": + version "1.0.28" + resolved "https://registry.yarnpkg.com/@aws-amplify/rtn-web-browser/-/rtn-web-browser-1.0.28.tgz#f627990aa9463809253f4b6ea88a0e950353dda4" + integrity sha512-AD0RgXtyA4bJxXBrLdQ6AzJv2udDJMxhMMwk4qU8M1ceeGk1SmvO99fX6Z1X0z5m8MScHPlKZ2Mc1IkUX2uYig== + "@aws-amplify/storage@6.6.10": version "6.6.10" resolved "https://registry.yarnpkg.com/@aws-amplify/storage/-/storage-6.6.10.tgz#ef0236b03456efbd0d4e96db3cdb9c562390e1e9"