JWT Authentication for React and FastAPI (easy with code)

preview_player
Показать описание
JWT is a popular way to implement authentication. React and FastAPI are two of the most popular frameworks for building software. We will create a simple login screen in React and authenticate using FastAPI.

🎓 Courses can be found:

👨‍💻 Hi, I am Eric!👨‍💻
Hey! I’m a seasoned developer and Cloud enthusiast. I love sharing my knowledge and helping others to discover the exciting world of programming and cloud technologies. For more tutorials, tips, and tech magic, don’t forget to hit that subscribe button and ring the bell for notifications!

🙏 Support The Channel 🙏
If you found this tutorial helpful, please give it a thumbs up 👍, comment, and share it with your network 🌍

PS: The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you.

#fastapi #python #react
Рекомендации по теме
Комментарии
Автор

This is called the perfect timing, I was struggling to authenticate user in protected pages. Thanks to you and your precise explaination, I got the answer.

yadavakash
Автор

Overall great video!

What is missing here is showing how to secure enpoints in the fastapi so that they are protected and how to make queries on the frontend to those enpoints (how to include token etc).

fooktu
Автор

Nice video! Can you share which vscode theme you use?

mrnewton
Автор

Jones Sharon Brown Karen Miller Sandra

DarrenMcGuire-to
Автор

Nice video. If I have a lot of pages that only an authenticated user can access, do I need to place the code of `useEffect` in each component?

loupa
Автор

Great as always! It would be great too if you deploy them on Vercel or AWS.

Andromeda_
Автор

Nice video! I had just created a fastapi+react authentication routes and your example gave me ideas to refactor some parts

souzafelix
Автор

CORS is not really for protecting the server, it is something implemented in the browser to avoid pages making cross-requests. You can download a plug-in for firefox to ignore CORS headers for example.

losdel
Автор

Very perfect timing for me too. A while back I got into React and FastAPI combo watching your tutorial and now this step was missing. Thanks for this man! Much Appreciated.

herozero
Автор

Great video, i would suggest stop using create react app and use vite instead (So much faster)

Ziv-dwmn
Автор

Thank you so much. This video was perfect.

aTrn