Finch-API / finch-api-node

Apache License 2.0
5 stars 1 forks source link

fix: fix bug access tokens create should set the authorization header to null - INTOP-93 #378

Closed eliseuvideira1 closed 4 months ago

eliseuvideira1 commented 4 months ago

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 older getAccessToken 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