People, I'm working on entering AWS Cognito Facebook and Google Plus for my iOS app. I can log in with the credentials of FB and G +, and I got the identifier id as a response. Is there a way to get user credentials such as username, email address and mobile number. I tried with user pools, but I got null when I use [self.pool currentUser] .username.
I also tried below
AWSCognito *syncClient = [AWSCognito defaultCognito];
AWSCognitoDataset *dataset = [syncClient openOrCreateDataset:@"myDataSet"];
NSString *userName = [dataset stringForKey:@"name"];
But still gets null as the username. If possible, please tell me a possible way.
source
share