redditwarp.auth.token_revocation_client_SYNC
#
- class redditwarp.auth.token_revocation_client_SYNC.TokenRevocationClient(http: HTTPClient, url: str, client_creds: ClientCredentials)[source]#
Bases:
object
Makes token revocation requests.
- http: HTTPClient#
- url: str#
- client_creds: ClientCredentials#
- revoke_token(token: str, token_type_hint: str = '') None [source]#
Makes a revocation request for a token.
- Parameters:
token (str) – The token to be revoked.
token_type_hint (str) – A hint about the type of the token (e.g.
access_token
,refresh_token
). This is supposed to make the operation slightly quicker for the server. If the given hint is invalid then the server should still attempt to resolve and revoke the token.