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

React Integration or Sample App

Open mgalindo opened this issue 8 years ago • 6 comments

Are there any plans to provide a React Sample application?

mgalindo avatar Aug 25 '17 20:08 mgalindo

I wish there was. This project doesn't move very often, but there is a chance someone at the team, catches your request when they do.

rcfrias avatar Aug 28 '17 19:08 rcfrias

In case it helps I have a fork of the sample app configured to an actual user pool. It helped me understand the flow and get started. You can browse at:

https://rawgit.com/guylichtman/amazon-cognito-auth-js/master/sample/index.html

glicht avatar Sep 01 '17 20:09 glicht

Found this repo by AWS staff using VueJS, it however does not use any AWS SDK, just a standard call using Axios to Cognito API endoints. Tested it and its working. However the endpoint it uses is different. For example the AWS doc says endpoint is "/oauth2/authorize", but the repo below uses "/authorize".

https://github.com/PaulMaddox/aws-vuejs-cognito

jaxondu avatar Nov 26 '17 19:11 jaxondu

@mgalindo We don't have a React integration now but I will mark this as a feature request. However, we cannot estimate the delivery time at this point. Also, @jaxondu both "/oauth2/authorize" and "/authorize" will work, but we recommend using "/oauth2/authorize".

yuntuowang avatar Dec 07 '17 00:12 yuntuowang

@mgalindo Here is how i've implemented Cognito User Pools and Cognito Identity with this SDK and the Cognito ID SDK in a vanilla create-react-app:

https://gist.github.com/gabeweaver/d1be9f0d41069437f576c375c30e134c

gabeweaver avatar Jan 12 '18 08:01 gabeweaver

late to the party but check this out: https://github.com/patmood/react-aws-cognito-example/blob/master/README.md

ahmetcetin avatar Mar 19 '18 15:03 ahmetcetin