Revoke the authorization token and all tokens that were generated using it.

def revoke_tokens(self):
        """
        Revoke the authorization token and all tokens that were generated using it.
        """

        self.is_active = False
        self.save()

        self.refresh_token.revoke_tokens()