diff --git a/services/ui-src/package.json b/services/ui-src/package.json index beb17857..f9674f17 100644 --- a/services/ui-src/package.json +++ b/services/ui-src/package.json @@ -3,7 +3,6 @@ "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": "^1.2.29", "@fortawesome/free-solid-svg-icons": "^5.13.1", diff --git a/services/ui-src/src/index.jsx b/services/ui-src/src/index.jsx index 861b6daa..d19c8fbe 100644 --- a/services/ui-src/src/index.jsx +++ b/services/ui-src/src/index.jsx @@ -7,6 +7,7 @@ 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"; @@ -18,8 +19,10 @@ const isEdge = !isIE && !!window.StyleMedia; Amplify.configure({ Storage: { - region: config.s3.REGION, - bucket: config.s3.BUCKET, + S3: { + 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 b6a66a23..fe82d427 100644 --- a/services/ui-src/yarn.lock +++ b/services/ui-src/yarn.lock @@ -124,11 +124,6 @@ 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"