internal async Task <GetUserResponse> getAttributes(CognitoUser user) { AmazonCognitoIdentityProviderClient provider = new AmazonCognitoIdentityProviderClient(new Amazon.Runtime.AnonymousAWSCredentials()); GetUserRequest req = new GetUserRequest(); req.AccessToken = user.SessionTokens.AccessToken; var res = provider.GetUser(req); return(res); }