I am using Django Rest Framework and i\'ve included a 3rd party package called REST framework JWT Auth. It returns a token when you send a username/password to a certain route.
Basically you could do this
username = request.user.username