Skip to content

Commit

Permalink
configure amplify
Browse files Browse the repository at this point in the history
  • Loading branch information
BearHanded committed Jul 8, 2024
1 parent 1dcf4ea commit 1e40913
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions services/ui-src/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 () => {
Expand Down

0 comments on commit 1e40913

Please sign in to comment.