Revoke an access token or a refresh token.
Python
from polar_sdk import Polar with Polar() as polar: res = polar.oauth2.revoke(request={ "token": "<value>", "client_id": "<id>", "client_secret": "<value>", }) # Handle response print(res)
{}
access_token
refresh_token
Successful Response
The response is of type RevokeTokenResponse · object.
RevokeTokenResponse · object
Was this page helpful?