Skip to content

Commit

Permalink
fix: set authModeStrategyType in e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hein Jeong authored and hein-j committed Dec 20, 2022
1 parent 4948b2e commit eb3496e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/test-generator/e2e-test-templates/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
import { Amplify, Auth } from 'aws-amplify';
import { Amplify, Auth, AuthModeStrategyType } from 'aws-amplify';
import '@aws-amplify/ui-react/styles.css';
import { AmplifyProvider } from '@aws-amplify/ui-react';
import { useEffect, useRef, useState } from 'react';
import awsconfig from './aws-exports';
import { BlogPosts } from './ui-components';

Amplify.configure(awsconfig);
Amplify.configure({
...awsconfig,
DataStore: {
authModeStrategyType: AuthModeStrategyType.MULTI_AUTH,
},
});

function App() {
const [isLoggedIn, setIsLoggedIn] = useState(false);
Expand Down

0 comments on commit eb3496e

Please sign in to comment.