Bug Fix: export 'Auth' (imported as 'Auth') was not found in 'aws-amplify'
Last updated
Last updated
const checkAuth = async () => {
Auth.currentAuthenticatedUser({
bypassCache: false
})
.then((user) => {
console.log('user', user);
return Auth.currentAuthenticatedUser()
}).then((cognito_user) => {
setUser({
display_name: cognito_user.attributes.name,
handle: cognito_user.attributes.preferred_username
})
})
.catch((err) => console.log(err));
}- "aws-amplify": "^6.0.2",
+ "aws-amplify": "^5.0.16",