Setup the Formance SDK in your TypeScript / JavaScript project.
client_credentials
grant type.For more information, see OAuth 2.0.client_credentials
grant type, which requires a client ID and client secret. These are sensitive credentials that should not be exposed to the public.If you’re integrating Formance into a web application, you should use an OAuth flow that does not require a client secret, such as the authorization code grant.index.ts
and add the following code. Replace the endpoint, client ID and client secret with your own values.ts-node
.