# How-Which library to use for React-Redux

**URL:** <https://community.auth0.com/t/how-which-library-to-use-for-react-redux/55854>\
**Category:** Get Help\
**Tags:** jwt, api, react, redux, auth0\
**Created:** [January 8, 2021, 12:17am UTC](https://community.auth0.com/t/how-which-library-to-use-for-react-redux/55854 "2021-01-08T00:17:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [January 8, 2021, 5:35pm UTC](https://community.auth0.com/t/how-which-library-to-use-for-react-redux/55854/3 "2021-01-08T17:35:00Z")

</div>

Hi @Tzypo,

> [@Tzypo](#):
>
> I could pass the token as a parameter but then each caller would have to do the token creation…

If you want to continue to use the `auth0-react` SDK, you could pass the token to the action by using `useAuth0` or `withAuth0`, but I agree that you probably want to handle that within the action instead of each component since you are using Redux.

The `auth0-react` SDK is built on top of the [Single Page App SDK](https://auth0.com/docs/libraries/auth0-single-page-app-sdk). Since you don’t want to use the React wrapper for hooks and components, you may want to use `auth0/auth0-spa-js` instead.

This topic shows an example of using `auth0/auth0-spa-js` and moving the auth0client outside of the Auth0 Provider so that actions are : [Using @auth0/auth0-spa-js outside of a React Component - #4 by klequis](https://community.auth0.com/t/using-auth0-auth0-spa-js-outside-of-a-react-component/27805/4)

Here are some additional resources you may find helpful for securing React/Redux apps:

- [Secure Your React and Redux App with JWT Authentication](https://auth0.com/blog/secure-your-react-and-redux-app-with-jwt-authentication)
- [Beyond Create React App: React Router, Redux, Redux Saga, and More](https://auth0.com/blog/beyond-create-react-app-react-router-redux-saga-and-more)
- [Redux: A Practical Tutorial](https://auth0.com/blog/redux-practical-tutorial)
- [Beyond Create React App: React Router, Redux Saga, and More](https://community.auth0.com/t/beyond-create-react-app-react-router-redux-saga-and-more/23118)
- [Up to date Redux example](https://community.auth0.com/t/up-to-date-redux-example/27728)

---

_[View the full topic](https://community.auth0.com/t/how-which-library-to-use-for-react-redux/55854)._
