In the last chapter, we looked at how to set up a production-ready Azure environment and configured our application so that we can deploy it automatically using Git deployments. As the application is now feature-complete and deployed to our chosen hosting environment, it's time to start building on some of our existing features using some more advanced concepts. In this chapter, we're going to extend our current authentication mechanism to include refresh tokens as well as the access tokens we're already using. In summary, we'll cover the following topics in this chapter:
- Refresh tokens: What are they and why would we use them?
- Adding refresh token support to the backend
- Handling refresh token flow on the frontend using axios interceptors