I am developing an App using Vue3 and AWS Amplify Gen2.
After the user logged in, i want to show some information about the user on the screen, which is part of cognito user pool standard attributes.
I am using fethUserAttributes but it only contains the email of the user and nothing else
import {fetchUserAttributes} from 'aws-amplify/auth';
import outputs from '../../amplify_outputs.json';
import {Amplify} from "aws-amplify";
Amplify.configure(outputs);
const attributes = await fetchUserAttributes()
console.log("email", attributes.email);
console.log("name", attributes.name);
console.log("attributes", attributes);
And here what i get at the console:
Can you please help me pinpoint the problem?