Django & React Session Authentication and CSRF | Part 9 - React Auth Status and Load User

Опубликовано: 17 Февраль 2026
на канале: Bryan Berk
3,022
52

🔥 Subscribe to my YouTube + Turn on Notification Bells!
👉    / @bryanberk  

Hey, Bryan here. I share videos that help web developers up their development skills!

Today I'll be sharing the ninth part for setting up a session based authentication system that I will help you implement using React, Redux, and Django with the Django Rest Framework. I will also be using Bootstrap for the styling in the application.

This is going to be a session based authentication system with some awesome features:
1. You will see how to implement session authentication in a Django & React app.
2. You will learn about what CSRF is and how we protect against it.
3. You will learn how to use a CSRF Token to protect your login and sign up pages.
4. You will learn how to use a CSRF Token to protect your authenticated API requests.
5. You will learn how to attach a profile to your user which you will be able to update.
6. You will learn how to add functionality for deleting a user through the user dashboard.

In this part, I will be setting up the functionality for checking whether a user is authenticated, that way the user stays logged in on page refreshes, and I will be implementing functionality for loading a user's profile into the frontend react app.

To stay up to date with the best web development content, make sure you subscribe to My YouTube channel Today!

The final project code can be found at: https://github.com/linkedweb/session_...