Unleash / unleash-client-node

Unleash client SDK for Node.js
https://docs.getunleash.io
Apache License 2.0
210 stars 71 forks source link

Making it clearer that the API token needs to be passed via custom headers #604

Closed alvinometric closed 4 months ago

alvinometric commented 4 months ago

In the first example that people will see, the Authorization header is like this

customHeaders: { Authorization: 'SOME-SECRET' },

To me it's not super clear that API token needs to be passed via custom headers.

I've also standardised that value throughout the readme.

coveralls commented 4 months ago

Coverage Status

coverage: 90.863%. remained the same when pulling ea801a1ad9c440ed8bcfecd2fe7e6776d5245c0b on alvin/update-readme into eb95b446491feda601e367c6db7c108126d20fce on main.