Django JWT Authentication in 7 Minutes
ฝัง
- เผยแพร่เมื่อ 23 พ.ย. 2024
- In this video I'll show you how I handle Authentication when building a backend with Django. When I'm using Django I always use this authentication library and I almost always use JWT's. I'll show you the easiest and most straightforward step to add great authentication that is also easy to work with since we have set-cookie headers.
#django #djangorestframework #python #authentication #jsonwebtoken #jwt
Is this compatible with Custom user and Djoser package and if we want to authenticate when registering, will it set the cookie?
Yes, you can use Custom User, I always use this with Customer User and it works seamlessly. dj-rest-auth has a registration endpoint. Social authentication is supported and many other things.
@@tenacity_dev can you make video about that
@@crocodile7719-d3b I'll keep that in mind for future videos I'll be doing, good suggestion
@@tenacity_dev and how incode user_info in access token