Open nicolasiensen opened 9 years ago
Here is my hack to make it work.
@nicolasiensen As an experiment, delete the pubsub-js dependency under j-toker, and install it directly into your own project.
Hey @colw, thanks for it, but we are not using j-toker anymore.
We had to move the project to a server-side rendering architecture, and since j-toker depends on client-side objects like window
it was not possible to keep using it.
@nicolasiensen Cool, no worries at all.
Hi guys, I'm building out an isomorphic example app using j-toker
and redux
. I'll post back here when it's ready to show.
Awesome @lynndylanhurley, I'm also using redux :smiley:
Cool, I'm thinking about releasing the redux wrapper as a separate project. I'm hoping to have it ready by the end of the week.
Just a quick update, I have this working and I'm just writing the documentation. Stay tuned for a release.
@lynndylanhurley Thanks so much for putting together a redux example! Can't wait to see it
@jchristianhall - it's more than an example, it will be an entire library. I have it working and I'm just writing the tests now.
@lynndylanhurley Excellent. Thanks!
@lynndylanhurley Any word on when the redux library might be ready?
@jchristianhall - sorry for the delay, I decided to add react-native support and it took a little longer than I thought. It should be a matter of days.
@lynndylanhurley It's alright. Thanks for the update!
@jchristianhall - the app is ready, please take a look: https://github.com/lynndylanhurley/redux-auth
had a similar issue here and used @nicolasiensen hack as a temp solution.
I noticed there were multiple PubSub
instances and I was subscribing to an instance other than the one created within j-toker
. When j-toker
went to publish, that instance of PubSub
had no subscribers. Potentially a side effect of webpack compilation as it appears both j-toker
and pubsub-js
are defining browser globals.
Hey,
I'm trying to listen to j-toker events with PubSub, but it seems that no event is been triggered by j-toker.
I've tried to place this code
And after calling
Auth.emailSignIn
, the PubSubauth
was not triggered.Thoughts?