Client credentials grant
Provides an OAuth token with no user associated with it, sort of like a “guest token”. To get this token, make a POST
request to https://osu.ppy.sh/oauth/token
. You can do so with the clientCredentialsGrant
method.
const token = await auth.clientCredentialsGrant();
Returns
Promise<GuestToken>;
Types
For more information regarding the client credentials flow, refer to the official documentation about the topic.
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 .