https://github.com/mjrussell/redux-auth-wrapper
A React Higher Order Component (HOC) for handling Authentication and Authorization with Routing and Redux
https://github.com/mjrussell/redux-auth-wrapper
authentication hoc react react-router redux
Last synced: 9 days ago
JSON representation
A React Higher Order Component (HOC) for handling Authentication and Authorization with Routing and Redux
- Host: GitHub
- URL: https://github.com/mjrussell/redux-auth-wrapper
- Owner: mjrussell
- License: mit
- Created: 2016-01-19T02:05:31.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-31T23:55:50.000Z (about 1 year ago)
- Last Synced: 2025-04-03T10:05:47.547Z (17 days ago)
- Topics: authentication, hoc, react, react-router, redux
- Language: JavaScript
- Homepage: https://mjrussell.github.io/redux-auth-wrapper
- Size: 2.47 MB
- Stars: 2,192
- Watchers: 36
- Forks: 238
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# redux-auth-wrapper
[](https://www.npmjs.com/package/redux-auth-wrapper)
[](https://www.npmjs.com/package/redux-auth-wrapper)
[](https://travis-ci.org/mjrussell/redux-auth-wrapper)
[](https://coveralls.io/github/mjrussell/redux-auth-wrapper?branch=master)
[](https://gitter.im/mjrussell/redux-auth-wrapper?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)**Decouple your Authentication and Authorization from your components!**
`npm install --save redux-auth-wrapper`
redux-auth-wrapper is a utility library for handling authentication and authorization in react + redux applications.
Read the documentation at https://mjrussell.github.io/redux-auth-wrapper
## Version 3
Version 3.x has the same external API as version 2, however it only supports React >= 16.3. It is also tested with react-router v5 and [connected-react-router](https://github.com/supasate/connected-react-router) which replaced [react-router-redux](https://github.com/reactjs/react-router-redux).## Version 2
Version 2.x is a big internal rewrite! It provides a massive increase in flexibility when using redux-auth-wrapper and also introduces some breaking changes. See the [Migration Guide](https://mjrussell.github.io/redux-auth-wrapper/docs/Migrating.html) for more details if coming from 1.x. Or check out the [Getting Started](https://mjrussell.github.io/redux-auth-wrapper/docs/Getting-Started/Overview.html) guide if you've never used redux-auth-wrapper before.
Looking for Version 1.x? You can browse the 1.x README [here](https://github.com/mjrussell/redux-auth-wrapper/tree/1.x).
## Submitting Issues
Having trouble? First check out the [Troubleshooting](https://mjrussell.github.io/redux-auth-wrapper/docs/Troubleshooting.html) section of the documentation, and then search the issues, both open and closed for your problem. If you are still having trouble or have a question on using redux-auth-wrapper, please open an issue! You can also ask on the gitter channel.
## Examples
* [React Router 3](https://github.com/mjrussell/redux-auth-wrapper/tree/master/examples/react-router-3)
* [React Router 4/5](https://github.com/mjrussell/redux-auth-wrapper/tree/master/examples/react-router-4)Other examples not yet updated to v2:
* [Redux-Router and React-Router 1.0 with JWT](https://github.com/mjrussell/react-redux-jwt-auth-example/tree/auth-wrapper)
* [React-Router-Redux and React-Router 2.0 with JWT](https://github.com/mjrussell/react-redux-jwt-auth-example/tree/react-router-redux)