From f945cb19104e386d4eddd0436e8ab0307c5861b4 Mon Sep 17 00:00:00 2001 From: Yuekui Li Date: Wed, 25 May 2022 17:57:52 -0700 Subject: [PATCH] Revoke with refresh token --- pycronofy/client.py | 2 +- pycronofy/validation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pycronofy/client.py b/pycronofy/client.py index 717af47..32bbab5 100644 --- a/pycronofy/client.py +++ b/pycronofy/client.py @@ -540,7 +540,7 @@ def revoke_authorization(self): data={ 'client_id': self.auth.client_id, 'client_secret': self.auth.client_secret, - 'token': self.auth.access_token, + 'token': self.auth.refresh_token, } ) self.auth.update( diff --git a/pycronofy/validation.py b/pycronofy/validation.py index 87ba0bb..149e598 100644 --- a/pycronofy/validation.py +++ b/pycronofy/validation.py @@ -70,7 +70,7 @@ }, 'revoke_authorization': { 'args': (), - 'auth': ('client_id', 'client_secret', 'access_token'), + 'auth': ('client_id', 'client_secret', 'refresh_token'), }, 'revoke_profile': { 'args': ('profile_id',),