make sure you have listed auth as jwt and added permission class for authentication
On Monday, 12 September 2022 at 09:52:22 UTC+5:30 [email protected] wrote: > I have used simple JWT for authentication and i have successfully logged > in and am getting tokens also. But when i do a request.user in backend i > get "Annonymous user". > Tried passing Authorization header in axios post in FE REACT but it throws > error. Am setting both refresh and access in a state variable and store it > in local storage . Am really new into this and I'm totally stuck here. > > All i did was to temporarily solve the issue is to send the user id from > frontend to backend and by the way it's a bad practice. > > So please help me out in this guys. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1f69ceeb-7294-4d51-a25c-b1a222c534d0n%40googlegroups.com.

