Thursday, August 25, 2022

DRF - request.user returns None

I am trying to get user using request.user and when printing gets None and in console it shows
"Annoymous user". and am using simple jwt

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG2dbb2N14X_5vcBqTjf%2Bji%2Bxq41x2i8dta2865fw_v5Ze5LpA%40mail.gmail.com.

No comments:

Post a Comment