Revoke token

To revoke an OAuth token, regardless if it’s from the client credentails or authorization code flow, use the revokeToken method on an Auth class instance. The method makes a DELETE request to https://osu.ppy.sh/api/v2/oauth/tokens/current.

Client.revokeToken has the same functionality.

Example

await auth.revokeToken(accessToken);

Parameters

ParameterTypeOptionalDescription
accessTokenstringThe access token of the OAuth token to revoke

Returns

Promise<void>;

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 .