invalidate Token
fun OAuth2.invalidateToken(bearerToken: String, vararg options: Option): JsonObjectApiAction<OAuthToken>
Content copied to clipboard
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.
Receiver
OAuth2 endpoint instance.
Return
JsonObjectApiAction for OAuthToken model.
Parameters
bearer Token
The value of the bearer token to revoke.
options
Optional. Custom parameters of this request.