@23blocks/sdk 5.0.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -406,7 +406,7 @@ const transport = createHttpTransport({
|
|
|
406
406
|
headers: () => {
|
|
407
407
|
const token = localStorage.getItem('access_token');
|
|
408
408
|
return {
|
|
409
|
-
'api-key': 'your-api-key',
|
|
409
|
+
'x-api-key': 'your-api-key',
|
|
410
410
|
...(token ? { Authorization: `Bearer ${token}` } : {}),
|
|
411
411
|
};
|
|
412
412
|
},
|
package/dist/index.esm.js
CHANGED
|
@@ -253,7 +253,7 @@ export * from '@23blocks/jsonapi-codec';
|
|
|
253
253
|
credentials: authMode === 'cookie' ? 'include' : undefined,
|
|
254
254
|
headers: ()=>{
|
|
255
255
|
const headers = _({}, staticHeaders, {
|
|
256
|
-
'api-key': apiKey
|
|
256
|
+
'x-api-key': apiKey
|
|
257
257
|
});
|
|
258
258
|
if (tenantId) {
|
|
259
259
|
headers['tenant-id'] = tenantId;
|