Implementing a login session authentication using React js, Context API and Python Flask API and JWT
Channel: 4Geeks Academy
Date: 2021-04-06

In this opportunity, we are building a small login system using:

- React.js, The Context API and sessionStorage for persistency.
- Python Flask framework for building API's.
- Flask JWT Extended library to implement JWT tokens.

You can find the exercise code template here:
https://github.com/4GeeksAcademy/react-flask-hello

Video Chapters:

0:00 - Intro
0:32 - How authentication works
12:04 - Creating a token in the backend
23:14 - Asking for a token from the front-end
36:14 - Storing the token in the front end localStorate
43:42 - Redirecting the user after login or handling error
53:40 - Making the session persistent (avoid loosing it on refresh)
57:36 - Logout
1:00:00 - Making authenticated requests