joshgeller / react-redux-jwt-auth-example

Sample project showing possible authentication flow using React, Redux, React-Router, and JWT
MIT License
1.58k stars 238 forks source link

Rewrite using redux-simple-router #7

Open gajus opened 8 years ago

gajus commented 8 years ago

This appears to be the preferred routing library now, https://github.com/acdlite/redux-router#for-a-more-stable-official-binding-between-redux-and-react-router-try-redux-simple-router.

mjrussell commented 8 years ago

@gajus I've written a helper library, that uses the HOC approach @joshgeller used in this repo. You add it to your dependencies and then you can apply it to your components to give them auth.

It supports redux-simple-router and there are examples as well. https://github.com/mjrussell/redux-auth-wrapper

wdhorton commented 8 years ago

redux-simple-router is now react-router-redux.