Skip to content

Commit

Permalink
Merge pull request #6479 from aws-amplify/reesscot-patch-2
Browse files Browse the repository at this point in the history
fix: missing config import in setup auth
  • Loading branch information
renebrandel authored Nov 17, 2023
2 parents b9a0489 + 0b8d3d1 commit 3449483
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/pages/[platform]/build-a-backend/auth/set-up-auth/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ amplify console
In your app's entry point (specifically, **App.js**, **index.js**, **\_app.js**, or **main.js**), import and load the configuration file:

```javascript
import { Amplify, Auth } from 'aws-amplify';
import config '';
Amplify.configure(awsconfig);
import { Amplify } from 'aws-amplify';
import config from './amplifyconfiguration.json';
Amplify.configure(config);
```

</Block>
Expand Down Expand Up @@ -344,7 +344,7 @@ import { Amplify } from 'aws-amplify';
import type { WithAuthenticatorProps } from '@aws-amplify/ui-react';
import { withAuthenticator } from '@aws-amplify/ui-react';
import '@aws-amplify/ui-react/styles.css';
import config './amplifyconfiguration.json';
import config from './amplifyconfiguration.json';
Amplify.configure(config);

export function App({ signOut, user }: WithAuthenticatorProps) {
Expand All @@ -367,7 +367,7 @@ import { Amplify } from 'aws-amplify';

import { withAuthenticator } from '@aws-amplify/ui-react';
import '@aws-amplify/ui-react/styles.css';
import config './amplifyconfiguration.json';
import config from './amplifyconfiguration.json';
Amplify.configure(config);

function App({ signOut, user }) {
Expand Down Expand Up @@ -406,9 +406,8 @@ The `Authenticator` component offers a simple way to add authentication flows in
import "@aws-amplify/ui-vue/styles.css";
import { Amplify } from 'aws-amplify';
import config './amplifyconfiguration';

Amplify.configure(awsconfig);
import config from './amplifyconfiguration.json';
Amplify.configure(config);
</script>

<template>
Expand Down

0 comments on commit 3449483

Please sign in to comment.