def post(self, request):
serializer = self.serializer_class(data=request.data)<EOL>if serializer.is_valid():<EOL><INDENT>user = serializer.validated_data['<STR_LIT:user>']<EOL>signals.user_logged_in.send(type(self), user=user, request=request)<EOL>token = self.model.objects.create(user=user)<EOL>token.update_expiry()<EOL>return response.Response({'<STR_LIT>': token.key})<EOL><DEDENT>return response.Response(<EOL>serializer.errors, status=status.HTTP_400_BAD_REQUEST)<EOL>
Create auth token. Differs from DRF that it always creates new token
        but not re-using them.