DRF - request.user returns None

61 views
Skip to first unread message

Jackson Patrick

unread,
Aug 26, 2022, 9:41:34 AM8/26/22
to django...@googlegroups.com
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

Lipede Tope

unread,
Aug 26, 2022, 1:31:18 PM8/26/22
to django...@googlegroups.com
Check if the user is authenticated
Eg if user.is_authentucated

On Fri, Aug 26, 2022, 3:11 PM Lipede Tope <lipede...@gmail.com> wrote:


On Fri, Aug 26, 2022, 2:40 PM Jackson Patrick <jacks...@gmail.com> wrote:
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...@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.
Reply all
Reply to author
Forward
0 new messages