lynndylanhurley / redux-auth

Complete token authentication system for react + redux that supports isomorphic rendering.
Do What The F*ck You Want To Public License
2.13k stars 259 forks source link

Successful integration with react-boilerplace? #136

Open mikeover opened 6 years ago

mikeover commented 6 years ago

Has anyone successfully integrated this with https://github.com/react-boilerplate/react-boilerplate? I started with the boilerplate with no changes, added this package, added redux-thunk, put AuthGlobals right under AppWrapper in App/index.js, and in app.js, rendered to the DOM the results of the renderApp call.

Getting the getIn error:

default-theme.js?926d:1 Uncaught (in promise) TypeError: Cannot read property 'getIn' of undefined
    at t.value (default-theme.js?926d:1)
    at eval (ReactCompositeComponent.js:795)
    ...

If anyone has a basic, working example I would really appreciate it. Would love to get these 2 packages working together...

Thanks!

mikeover commented 6 years ago

If anyone else runs into this, I finally got them working together. Had to make some changes to redux-auth but I integrated them and created a new repo at https://github.com/mikeover/react-boilerplate-redux-auth