Revoke Token
The revokeToken method on a Client instance makes a DELETE request to the oauth/tokens/current endpoint and doesn’t return anything.
Auth.revokeToken has the same functionality.
Example
// Revoke the current access token
await api.revokeToken();
Returns
Promise<void>;
Possible Exceptions
See the error handling documentation for more information.
network_errorunexpected_response
Notice that something is missing? Found a typo? Think something's incomplete? Or think that something can be explained better? Feel free to open a pull request or submit an issue on the library's Github repository .