Answer the question
In order to leave comments, you need to log in
How to know current user Django-rest-framework + rest-auth + ReactJS?
There is an application on django-rest + Reactjs. For login I use rest-auth. I send using Jquery AJAX to /auth/login and the user logs in - a token is returned in response. Question: How can I find out the id of the current user after login?
Answer the question
In order to leave comments, you need to log in
rewrite the serializers, add the id field next to the key(token) and that's it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question