How to get and update user attributes AWS amplify angular 6
问题 How would I change the attributes of the Cognito user after sign up into the application? What API should be used to fetch the details of the user like First Name, Last Name etc? What API should be used to update the user details? 回答1: To fetch the details of the user, simply use this.amplifyService.auth().currentAuthenticatedUser() and retrieve the user.attributes fields. /** * Get current authenticated user * @return - A promise resolves to curret authenticated CognitoUser if success */