def reset_token(self, **params):
        response = self.claim_token(**params)
        if not self.user:
            return response

        self.user.api_key.reset_token()
        headers = remember(self.request, self.user.username)
        return JHTTPOk('Registered', headers=headers)
Reset current token by POSTing 'login' and 'password'.
dataset/ETHPy150Open ramses-tech/nefertari/nefertari/authentication/views.py/TokenAuthViewMixin.reset_token