I have a token string from Django REST Framework\'s TokenAuthentication.
I need to get the corresponding user object. How would I go about doing this?
A better method to use would be to simply call request.user since access to the Token means an authenticated request. DjangoRestFramework gives access to request.auth and request.user on a successful TokenAuthentication.
request.user
request.auth