You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code related to User Authentication has changed in the last version of @aws-amplify/ui-react. As sugested in the documentation, now must be like this:
import{Amplify}from'aws-amplify';import{Authenticator}from'@aws-amplify/ui-react';import'@aws-amplify/ui-react/styles.css';importawsExportsfrom'./aws-exports';Amplify.configure(awsExports);exportdefaultfunctionApp(){return(<Authenticator>{({ signOut, user })=>(<main><h1>Hello {user.username}</h1><buttononClick={signOut}>Sign out</button></main>)}</Authenticator>);}
The text was updated successfully, but these errors were encountered:
First of all, this is a great tutorial!
The code related to User Authentication has changed in the last version of
@aws-amplify/ui-react
. As sugested in the documentation, now must be like this:The text was updated successfully, but these errors were encountered: