Skip to content

Commit 07d1ca1

Browse files
authored
use http basic auth for /oauth/revoke endpoint (nylas#223)
Current implementation will always return a 401. Use basic auth per the Nylas docs: https://developer.nylas.com/docs/api#post/oauth/revoke
1 parent ea8645e commit 07d1ca1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nylas/client/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def update_application_details(
231231
return _validate(resp).json()
232232

233233
def revoke_token(self):
234-
resp = self.session.post(self.revoke_url)
234+
resp = requests.post(self.revoke_url, auth=(self.access_token, None))
235235
_validate(resp)
236236
self.auth_token = None
237237
self.access_token = None

0 commit comments

Comments
 (0)