Closed eliseuvideira1 closed 4 months ago
Fix bug with accessTokens.create call.
accessTokens.create
The authorization header should be set to null on this POST /auth/token
POST /auth/token
Customer can't use the SDK to create the access token using the accessTokens.create interface, only the older getAccessToken interface.
getAccessToken
We can see here that we do it for the getAccessToken but not for the newer method.
https://github.com/Finch-API/finch-api-node/blob/main/src/index.ts#L180-L190
Fix bug with
accessTokens.create
call.The authorization header should be set to null on this
POST /auth/token
Customer can't use the SDK to create the access token using the
accessTokens.create
interface, only the oldergetAccessToken
interface.We can see here that we do it for the
getAccessToken
but not for the newer method.https://github.com/Finch-API/finch-api-node/blob/main/src/index.ts#L180-L190