React Dev

React Dev

1625909890

Implementing a login session authentication using React js, Context API and Python Flask API and JWT

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.

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

You can find the exercise code template here:

https://github.com/4GeeksAcademy/reac…

Subscribe: https://www.youtube.com/c/BreatheCode/featured

#react

Implementing a login session authentication using React js, Context API and Python Flask API and JWT