invalidateToken

fun OAuth2.invalidateToken(bearerToken: String, vararg options: Option): JsonObjectApiAction<OAuthToken>

Allows a registered application to revoke an issued OAuth 2 Bearer Token by presenting its client credentials. Once a Bearer Token has been invalidated, new creation attempts will yield a different Bearer Token and usage of the invalidated token will no longer be allowed. Successful responses include a JSON-structure describing the revoked Bearer Token.

Twitter API reference

Receiver

OAuth2 endpoint instance.

Return

JsonObjectApiAction for OAuthToken model.

Parameters

bearerToken

The value of the bearer token to revoke.

options

Optional. Custom parameters of this request.