code: def revoke_tokens(self):
          
  
          self.is_active = False
          self.save()
  
          self.refresh_token.revoke_tokens()
docs: Revoke the authorization token and all tokens that were generated using it.