UNPKG

splitwise

Version:

A TypeScript SDK for the Splitwise API.

18 lines 715 B
"use strict"; /** * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchClientCredentialsToken = fetchClientCredentialsToken; const internal_js_1 = require("./internal.js"); async function fetchClientCredentialsToken(params, options = {}) { return (0, internal_js_1.postTokenRequest)({ grant_type: 'client_credentials', client_id: params.clientId, client_secret: params.clientSecret, }, options); } //# sourceMappingURL=client-credentials.js.map