Token authentication functionality assigns a token to a user, so each time you use that token, the request object will have a user attribute that holds the user model information. Easy, isn’t it?
We’ll create a new POST method to return the token for this user, as long as the request holds a correc...