Become A Full Stack Developer In 7 Lessons - Authentication with React

Veröffentlicht am: 01 Januar 1970
auf dem Kanal: Dev Drawer
837
15

#jwt #authentication #react #php #fullstackdevelopment

Become a Full Stack Developer—Episode 4: In this episode, we’re tackling a critical feature of any modern application: authentication. Learn how to secure your API with JWT (JSON Web Tokens) and implement user login, logout, and protected routes in your React and PHP application. By the end of this tutorial, your app will be equipped with a robust and secure authentication system.

📚 What You'll Learn in This Episode:
1. What is JWT, and how does it work?
2. Setting up a secure login API in PHP using JWT.
3. Storing and managing tokens in React with localStorage.
4. Protecting API routes on the backend using JWT validation middleware.
5. Creating protected routes in React using React Router.
6. Tips for handling token expiration and logout functionality.

🔗 Timestamps:
00:00 - Intro
00:50 - What is JWT
02:59 - Create Auth Controller (PHP)
17:18 - Adding Login API Route (PHP)
18:32 - Creating Login Component (React)
28:32 - Add Login Route (React)
29:48 - Fix API Type (PHP)
30:47 - Add authHeaders to Items (React)
32:27 - Setting Up Protected/Private Routes (React)
38:48 - Addressing TypeScript Errors (React)

🌟 Full Series Playlist
Did you miss an episode? Watch the complete series here:    • Become A Full Stack Developer  

⭐ Programmer Merch: https://store.thedevdrawer.com/#!/

⭐ Join the Discord:   / discord  

⭐ If you would like to buy me a coffee because I created something that helped you, it would be much appreciated! : https://www.buymeacoffee.com/devdrawer

⭐ Join this channel to get access to perks:
   / @devdrawer  

⭐ Become a Patreon to show support and get exclusive access to content:   / devdrawer  

`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````
Subscribe: https://bit.ly/2Wbsnj9
`````````````````````````````````````````````````````````````````````````````````````````````````````````````````````

Join us on our blog for video recaps and other tutorials: https://thedevdrawer.com
Become a fan on Twitter:   / thedevdrawer  

View Project on GitHub: https://github.com/thedevdrawer


Auf dieser Seite können Sie das Online-Video Become A Full Stack Developer In 7 Lessons - Authentication with React mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Dev Drawer 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 837 Mal angesehen und es wurde von 15 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!