amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
423 stars 232 forks source link

React Native implementation #38

Open donjerick opened 6 years ago

donjerick commented 6 years ago

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

yuntuowang commented 6 years ago

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

yuntuowang commented 6 years ago

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

panuhorsmalahti commented 6 years ago

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?

yuntuowang commented 6 years ago

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".