How Authentication Works in React

Опубликовано: 24 Июль 2026
на канале: Shruti Kapoor
15,801
306

Watch the full documentation used in this video:
https://go.clerk.com/CYrvZF2

What happens behind the scenes when a user authenticates with "Sign In"? If you are a frontend developer, this video is for you.

Learn sessions, JWTs, cookies and how I built it from scratch in Express to see how authentication works behind the scenes. Learn how a production company like Clerk does authentication in production at scale.This video is auth from the perspective of the React engineer who has to integrate it, debug it, and maintain it.

You'll see:
How session-based auth works and why it doesn't scale
What a JWT (JSON WEB TOKEN) actually is and why the payload isn't secret
How Clerk uses two tokens to get the best of both worlds
What a real Clerk session token looks like decoded

Sign up so you get a deep dive in your inbox every week: https://tinyurl.com/shruti-newsletter


VIDEO REFERENCES
Github code repo: https://github.com/shrutikapoor08/aut...
Clerk Docs: https://go.clerk.com/CYrvZF2

RECOMMENDED RESOURCES
1. React Course for beginners: https://www.oreilly.com/library/view/...
2. Practice JavaScript Interviews: https://www.greatfrontend.com/questio...
3. Become an AI FullStack Developer: https://scrimba.com/fullstack-path-c0...

FREE RESOURCES
1. FREE React Interview Questions Book: https://bit.ly/free-react-guide

GET IN TOUCH
1. Book a 1:1 - https://topmate.io/shrutikapoor08
2. Join our Discord: http://bit.ly/shruti-discord

SOCIALS
Newsletter: https://shrutikapoor.substack.com/
X / Twitter:   / shrutikapoor08  
INSTAGRAM:   / techcreatorshrutikapoor  
TIKTOK:   / techcreatorshrutikapoor  
Web: https://shrutikapoor.dev/

CHAPTERS
0:00 Intro
0:55 Authentication vs Authorization
1:33 Session tokens
7:33 Break time
7:41 JWT Tokens
17:00 How Clerk uses both in production
21:26 Implementing auth with Clerk
25:09 Recap

Topics covered: auth for React engineers, session-based authentication, JWT tutorial, JSON web tokens, cookies HttpOnly, Clerk auth, React authentication, token-based auth, sessions vs JWT, frontend auth


#reactjs #webdevelopment #authentication #shrutikapoor

Sub: 42,929