---
title: "Comment by Hari Krishnan Murthy on \"Build an Authentication System with AWS Amplify, Cognito and React\" | Hashnode"
description: "Hey Victoria, Thanks a ton for the article. I followed it to the &#39;T&#39; and it almost got me there. I had to do minor tweaks to get this to work for the la"
url: "https://hashnode.com/posts/build-an-authentication-system-with-aws-amplify-cognito-and-react/60c228941e145957d5af5a4e/comment/63aeba5a2381e73bbf93bba7"
---

[Discussion](https://hashnode.com/posts/build-an-authentication-system-with-aws-amplify-cognito-and-react/60c228941e145957d5af5a4e)

Comment [Build an Authentication System with AWS Amplify, Cognito and React](https://hashnode.com/posts/build-an-authentication-system-with-aws-amplify-cognito-and-react/60c228941e145957d5af5a4e)

[Hari Krishnan Murthy](https://hashnode.com/@harikrishnanmurthy)

[Dec 30, 2022](https://hashnode.com/posts/build-an-authentication-system-with-aws-amplify-cognito-and-react/60c228941e145957d5af5a4e/comment/63aeba5a2381e73bbf93bba7)

Hey Victoria, Thanks a ton for the article. I followed it to the 'T' and it almost got me there. I had to do minor tweaks to get this to work for the latest version aws amplify.

I am listing the tweaks I had to do to get this working in my case. Hopefully, it helps someone who is looking for leads like me:

1) I had to wrap Amplify inside {} to get it to work. Else I got an import error on app startup

```
import { Amplify } from 'aws-amplify';
```

2) I had to import the css explicitly since it is no longer part of the amplify dist I suppose:

```
import '@aws-amplify/ui-react/styles.css';
```

3) AmplifySignOut is no longer supported. I had to use Authenticator and wrap the code within { signOut, user }. For example:

```
return (
    <Authenticator>
      {({ signOut, user }) => (
        <div className="App">
          <Alert variant="success">
            <Alert.Heading>Hey, {user.username}</Alert.Heading>
            <p>
              Thanks for using abcdef &#10084;
            </p>
            <hr />
            <p className="mb-0">
              Would you like to sign out from this device?
            </p>
          </Alert>
          <button className="btn btn-info mr-2" onClick={signOut}>Sign out</button>
        </div>
      )}
    </Authenticator>
  );
```

Other than these, the tutorial worked like a charm. Keep rocking :)

[Victoria Lo](https://hashnode.com/@victoria)

[Dec 31, 2022](https://hashnode.com/posts/build-an-authentication-system-with-aws-amplify-cognito-and-react/60c228941e145957d5af5a4e/comment/63aeba5a2381e73bbf93bba7#reply-63af9d0a42ec5647dfa0248b)

Wow [Hari Krishnan Murthy](https://hashnode.com/@harikrishnanmurthy)! I should be thanking you 😊 Thanks so much! I'll update the article~
