I'm using mobile hub and Amazon Cognito to authenticate user by using Facebook provider. Once use login with Facebook I need to check if this is first time login to the app or not. If it is first time I need to get some information and if it is already sign-up to the app I need to get some information related to the user from dynamoDB. I was wondering what would be the best way to find out if user login to the app for the first time.
#import <AWSMobileHubHelper/AWSMobileHubHelper.h>
@implementation UserIdentityAccess
- (NSString *)getUserIdentity {
return [AWSIdentityManager defaultIdentityManager].identityId;
}