amazon-cognito-auth-js icon indicating copy to clipboard operation
amazon-cognito-auth-js copied to clipboard

React Native implementation

Open donjerick opened this issue 8 years ago • 4 comments

Do you have any sample on how to use/implement authenticating with facebook using this library in react native?

donjerick avatar Sep 25 '17 15:09 donjerick

I will mark this as a feature request. However we cannot estimate the delivery time at this point.

yuntuowang avatar Dec 07 '17 00:12 yuntuowang

@donjerick , here we have a great resource: https://github.com/aws/aws-amplify/blob/master/README.md#react-native-development

yuntuowang avatar Dec 14 '17 19:12 yuntuowang

aws-amplify provides aws-amplify-react-native for using AWS Amplify with React Native. Unfortunately, it doesn't have all the features of aws-amplify-react. In particular, it is missing withFederated, which is required for federated identities login.

It would also be nice if the differences were documented somewhere.

I did check whatwithFederated does in aws-amplify, it ultimately leads to this: https://github.com/aws/aws-amplify/blob/21c327cbaf966e849e8b10efab9d510fe0b823d4/packages/aws-amplify/src/Auth/Auth.ts#L745

but now I'm more confused.. where does it create the user to the user pool? Or is that not supported in aws-amplify?

panuhorsmalahti avatar Feb 08 '18 11:02 panuhorsmalahti

Hi @panuhorsmalahti, a quick update to you is that we are actually working on put Cognito JS SDK resources together within aws-amplify. By then, the aws-amplify libraries will always be newest and the documentation will be clearer.

Also, I will refer my teammate to answer your specific question about "withFederated".

yuntuowang avatar Feb 08 '18 22:02 yuntuowang