Open robotdan opened 5 years ago
Currently working on cleaning up the Node server and creating the React client from scratch. Initial commit: 463ccaf4ccf9066258cd1fd40c3b69e3792adaae. For some reason, the cookies aren't being set, and I can't figure out why. It worked with Angular just fine. I still have a ways to go once I get this cookie issue figured out though. I'll be on/off a bit over the next two weeks while on vacation, but please take a look and let me know what you think, and let me know if you can figure out why the cookies may not be working.
Re: cookies, make sure you set withCredentials = "true"
with whatever you're using to make the HTTP request.
Ah, I never saw that anywhere in Angular. I'm not familiar with it at all, so I'm guessing that must have been set somewhere else in that repo, unless it's built into the fetch module used there. I was able to fix the cookie issue. I'll cleanup the code I have so far, add the comments, and then I'll move on to adding the additional content.
@robotdan please add react-redux and redux to it so one can better understand how to add it to a sigle page app the uses redux
This library needs some work, the code was originally written for an IBM Cloud / Cloud Foundry example, and it has become crufty.
Work items:
auth.js
module, or use a FusionAuth client library