In this chapter, we discussed what token authentication is and why using it instead of traditional cookie/session ID authentication makes sense. Next, we learned about an open standard for token authentication: JSON Web Token (JWT). We focused on how tokens are created and what makes them secure. Finally, we discussed how to use JWTs and implemented them in our Redux application.
In the next chapter, we will focus on how to write tests for and with Redux, as well as the pros and cons of testing in Redux. Tests can be written for all elements of Redux. Furthermore, we will discuss how to mock a Redux store for testing, which is useful for testing asynchronous actions.