Digest and Test
Reinforce understanding and test your knowledge of the topics covered in this section.
We'll cover the following
Let’s refresh our memory by summarizing the main ideas discussed in this chapter:
We dove deeper into more concepts, such as authentication in a React application. We implemented a clean logic for requests on the Django API with access tokens and also implemented the refresh logic if the access token has expired.
We also had the chance to use more of the Bootstrap components to not only style login and registration forms but also to create login and register pages.
Finally, we implemented a custom React Hook to handle everything concerning authentication on the frontend, with methods for registration and login, some utilities to retrieve tokens fromÂ
localStorage
 , and setting tokens and user data inÂlocalStorage
. Hook helped us do some refactoring in the code base according to the DRY principle.
Test your understanding
Put your knowledge to the test with a quiz designed to reinforce your understanding.
Get hands-on with 1400+ tech skills courses.