AWS Cognito Facebook and Google Plus User Credentials

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.

+4
source share
1 answer

I think you will need to request a "profile" or other areas to get this.

I recently created a linked structure, and it has an example of retrieving user profile information. https://github.com/Thywis/MultiAccountOauth

0
source

Source: https://habr.com/ru/post/1679960/


All Articles