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',),