From 1e40913d4cb22eec092f3de5502b71770b24000a Mon Sep 17 00:00:00 2001 From: BearHanded Date: Mon, 8 Jul 2024 09:56:01 -0400 Subject: [PATCH] configure amplify --- services/ui-src/src/index.tsx | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/services/ui-src/src/index.tsx b/services/ui-src/src/index.tsx index b62b7868..a120e6ba 100644 --- a/services/ui-src/src/index.tsx +++ b/services/ui-src/src/index.tsx @@ -3,7 +3,7 @@ import ReactDOM from "react-dom"; import { BrowserRouter as Router } from "react-router-dom"; import { ErrorBoundary } from "react-error-boundary"; -// import { Amplify } from "aws-amplify"; +import { Amplify } from "aws-amplify"; import config from "config"; import { ApiProvider, UserProvider } from "utils"; import { asyncWithLDProvider } from "launchdarkly-react-client-sdk"; @@ -12,27 +12,27 @@ import { ChakraProvider } from "@chakra-ui/react"; import theme from "styles/theme"; import "./styles/index.scss"; -// Amplify.configure({ -// Storage: { -// region: config.s3.REGION, -// bucket: config.s3.BUCKET, -// identityPoolId: config.cognito.IDENTITY_POOL_ID, -// }, -// Auth: { -// mandatorySignIn: true, -// region: config.cognito.REGION, -// userPoolId: config.cognito.USER_POOL_ID, -// identityPoolId: config.cognito.IDENTITY_POOL_ID, -// userPoolWebClientId: config.cognito.APP_CLIENT_ID, -// oauth: { -// domain: config.cognito.APP_CLIENT_DOMAIN, -// redirectSignIn: config.cognito.REDIRECT_SIGNIN, -// redirectSignOut: config.cognito.REDIRECT_SIGNOUT, -// scope: ["email", "openid", "profile"], -// responseType: "code", -// }, -// }, -// }); +Amplify.configure({ + Storage: { + region: config.s3.REGION, + bucket: config.s3.BUCKET, + identityPoolId: config.cognito.IDENTITY_POOL_ID, + }, + Auth: { + mandatorySignIn: true, + region: config.cognito.REGION, + userPoolId: config.cognito.USER_POOL_ID, + identityPoolId: config.cognito.IDENTITY_POOL_ID, + userPoolWebClientId: config.cognito.APP_CLIENT_ID, + oauth: { + domain: config.cognito.APP_CLIENT_DOMAIN, + redirectSignIn: config.cognito.REDIRECT_SIGNIN, + redirectSignOut: config.cognito.REDIRECT_SIGNOUT, + scope: ["email", "openid", "profile"], + responseType: "code", + }, + }, +}); // LaunchDarkly configuration const ldClientId = config.REACT_APP_LD_SDK_CLIENT; (async () => {