splitwise
Version:
A TypeScript SDK for the Splitwise API.
15 lines • 561 B
JavaScript
/**
* OAuth 2.0 Client Credentials grant for Splitwise.
*
* This is the simplest server-to-server flow: exchange your app's client_id
* and client_secret for an access token that acts on behalf of the app owner.
*/
import { postTokenRequest } from './internal.js';
export async function fetchClientCredentialsToken(params, options = {}) {
return postTokenRequest({
grant_type: 'client_credentials',
client_id: params.clientId,
client_secret: params.clientSecret,
}, options);
}
//# sourceMappingURL=client-credentials.js.map