In this video, we'll be learning how to add authentication to our FastAPI application. We'll implement user registration with secure password hashing using Argon2, build a login system using JWT tokens, and manage configuration with pydantic-settings. We'll also create registration and login pages, set up an auth.js module for managing client-side authentication state, and update the navbar to reflect whether a user is logged in or out. This tutorial sets up the foundation for route protection and authorization, which we'll implement in the next video. Let's get started...
The code from this video can be found here:
https://github.com/CoreyMSchafer/Fast...
Full FastAPI Course:
• FastAPI Tutorials
✅ Support My Channel Through Patreon:
/ coreyms
✅ Become a Channel Member:
/ @coreyms
✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
http://a.co/inIyro1
✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer
▶️ You Can Find Me On:
My Website - http://coreyms.com/
My Second Channel - / coreymschafer
Facebook - / coreymschafer
Twitter - / coreymschafer
Instagram - / coreymschafer
#Python #FastAPI
On this page of the site you can watch the video online Python FastAPI Tutorial (Part 10): Authentication - Registration and Login with JWT with a duration of hours minute second in good quality, which was uploaded by the user Corey Schafer 28 January 2026, share the link with friends and acquaintances, this video has already been watched 17,084 times on youtube and it was liked by 543 viewers. Enjoy your viewing!