intuit / oauth-jsclient

Intuit's NodeJS OAuth client provides a set of methods to make it easier to work with OAuth2.0 and Open ID
https://developer.intuit.com/
Apache License 2.0
123 stars 159 forks source link

React Implementation Help #133

Open sam-c-freeman opened 1 year ago

sam-c-freeman commented 1 year ago

Hi there! I used Intuit's demo app and was able to get the code flow to work smoothly in their demo app. I am now trying to use this library with my React app. My first issue is with CORS errors because the request is initiated on the client and not node. Have tried several solutions and nothing is solving that problem. The other issue is how to properly trigger the popup for the login screen. This works in the demo app but I have not been able to come up with a good solution. When I did create a pop-up and log in. There is just a log-in error from intuit on the DOM with no description of what went wrong. I would love some help! Thanks!

erdemalpay commented 1 year ago

It may be related with redirectUri you used for creating url doesn't match with the one you should add from dashboard.