@23blocks/block-authentication 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 CHANGED
@@ -35,7 +35,7 @@ const transport = createHttpTransport({
35
35
  headers: () => {
36
36
  const token = localStorage.getItem('access_token');
37
37
  return {
38
- 'api-key': 'your-api-key',
38
+ 'x-api-key': 'your-api-key',
39
39
  ...(token ? { Authorization: `Bearer ${token}` } : {}),
40
40
  };
41
41
  },
package/dist/index.esm.js CHANGED
@@ -2764,7 +2764,7 @@ const tenantUserMapper = {
2764
2764
  * baseUrl: 'https://api.example.com',
2765
2765
  * headers: () => ({
2766
2766
  * 'Authorization': `Bearer ${getToken()}`,
2767
- * 'api-key': 'your-api-key',
2767
+ * 'x-api-key': 'your-api-key',
2768
2768
  * }),
2769
2769
  * });
2770
2770
  *
@@ -137,7 +137,7 @@ export interface AuthenticationBlock {
137
137
  * baseUrl: 'https://api.example.com',
138
138
  * headers: () => ({
139
139
  * 'Authorization': `Bearer ${getToken()}`,
140
- * 'api-key': 'your-api-key',
140
+ * 'x-api-key': 'your-api-key',
141
141
  * }),
142
142
  * });
143
143
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/block-authentication",
3
- "version": "5.0.1",
3
+ "version": "6.0.0",
4
4
  "description": "Authentication block for 23blocks SDK - users, roles, API keys, subscriptions",
5
5
  "license": "MIT",
6
6
  "author": "23blocks <hello@23blocks.com>",