flowrix 1.0.1-beta.93 → 1.0.1-beta.94

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.
Files changed (40) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +5 -14
  3. package/dist/runtime/composables/Product/CustomProduct/useCustomeScript.js +0 -1
  4. package/dist/runtime/middleware/flowrix.js +1 -2
  5. package/dist/runtime/server/api/auth/forgot.js +0 -1
  6. package/dist/runtime/server/api/auth/login.js +0 -5
  7. package/dist/runtime/server/api/auth/logout.js +0 -1
  8. package/dist/runtime/server/api/auth/register.js +0 -1
  9. package/dist/runtime/server/api/auth/session.get.js +0 -2
  10. package/dist/runtime/server/api/auth/user/reset-password.js +0 -1
  11. package/dist/runtime/server/api/auth/user/session.js +0 -1
  12. package/dist/runtime/server/api/auth/user/verify-token.js +0 -1
  13. package/dist/runtime/server/api/cart/related.js +0 -1
  14. package/dist/runtime/server/api/cart/remove.js +0 -1
  15. package/dist/runtime/server/api/checkout/quotation/[slug].js +0 -1
  16. package/dist/runtime/server/api/checkout/quotation/guest/[slug].js +0 -2
  17. package/dist/runtime/server/api/checkout/quotation/guest/customer.js +0 -1
  18. package/dist/runtime/server/api/checkout/quotation/submit/[slug].js +0 -1
  19. package/dist/runtime/server/api/customer/address/add.js +0 -1
  20. package/dist/runtime/server/api/customer/address/delete.js +0 -1
  21. package/dist/runtime/server/api/customer/address/setshipping.js +0 -1
  22. package/dist/runtime/server/api/customer/address/update.js +0 -1
  23. package/dist/runtime/server/api/customer/cards/delete.js +0 -1
  24. package/dist/runtime/server/api/customer/cards/get.js +0 -1
  25. package/dist/runtime/server/api/customer/change-password.js +0 -1
  26. package/dist/runtime/server/api/customer/checkout.js +0 -1
  27. package/dist/runtime/server/api/customer/orders.js +0 -1
  28. package/dist/runtime/server/api/customer/profile/update.js +0 -1
  29. package/dist/runtime/server/api/customer/quotations.js +0 -1
  30. package/dist/runtime/server/api/customer/search.js +0 -1
  31. package/dist/runtime/server/api/customer/tax-invoice.js +0 -1
  32. package/dist/runtime/server/api/customer/wishlist/add.js +0 -1
  33. package/dist/runtime/server/api/customer/wishlist/createWishList.js +0 -1
  34. package/dist/runtime/server/api/customer/wishlist/deleteFromWishList.js +0 -1
  35. package/dist/runtime/server/api/customer/wishlist/deleteWishList.js +0 -1
  36. package/dist/runtime/server/api/customer/wishlist/get.js +0 -1
  37. package/dist/runtime/server/api/customer/wishlist/getWishListItems.js +0 -1
  38. package/dist/runtime/server/api/customer/wishlist/updateWishList.js +0 -1
  39. package/dist/runtime/utils/api.js +0 -2
  40. package/package.json +1 -1
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flowrix",
3
3
  "configKey": "flowrix",
4
- "version": "1.0.1-beta.93",
4
+ "version": "1.0.1-beta.94",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -9,22 +9,13 @@ const module$1 = defineNuxtModule({
9
9
  async setup(_options, nuxt) {
10
10
  const env = process.env;
11
11
  const runtimeConfig = nuxt.options.runtimeConfig;
12
- runtimeConfig.FLOWRIX_API_KEY ||= env.FLOWRIX_API_KEY || "";
13
- runtimeConfig.FLOWRIX_API_SECRET ||= env.FLOWRIX_API_SECRET || "";
14
- runtimeConfig.FLOWRIX_API_ORIGIN ||= env.FLOWRIX_API_ORIGIN || "";
15
- runtimeConfig.FLOWRIX_API_BASE ||= env.FLOWRIX_API_BASE || "";
16
- runtimeConfig.FLOWRIX_API_BASE_V2 ||= env.FLOWRIX_API_BASE_V2 || "";
17
- runtimeConfig.FLOWRIX_CACHE ||= env.FLOWRIX_CACHE || false;
18
- runtimeConfig.FLOWRIX_CDN ||= env.FLOWRIX_CDN || "";
19
12
  Object.assign(runtimeConfig.public, {
20
13
  ...runtimeConfig.public,
21
- FLOWRIX_API_KEY: runtimeConfig.public.FLOWRIX_API_KEY || env.FLOWRIX_API_KEY || "",
22
- FLOWRIX_API_SECRET: runtimeConfig.public.FLOWRIX_API_SECRET || env.FLOWRIX_API_SECRET || "",
23
- FLOWRIX_API_ORIGIN: runtimeConfig.public.FLOWRIX_API_ORIGIN || env.FLOWRIX_API_ORIGIN || "",
24
- FLOWRIX_API_BASE: runtimeConfig.public.FLOWRIX_API_BASE || env.FLOWRIX_API_BASE || "",
25
- FLOWRIX_API_BASE_V2: runtimeConfig.public.FLOWRIX_API_BASE_V2 || env.FLOWRIX_API_BASE_V2 || "",
26
- FLOWRIX_CACHE: runtimeConfig.public.FLOWRIX_CACHE || env.FLOWRIX_CACHE || false,
27
- FLOWRIX_CDN: runtimeConfig.public.FLOWRIX_CDN || env.FLOWRIX_CDN || ""
14
+ FLOWRIX_API_KEY: runtimeConfig.public.FLOWRIX_API_KEY || env.FLOWRIX_API_KEY || runtimeConfig.FLOWRIX_API_KEY || "",
15
+ FLOWRIX_API_ORIGIN: runtimeConfig.public.FLOWRIX_API_ORIGIN || env.FLOWRIX_API_ORIGIN || runtimeConfig.FLOWRIX_API_ORIGIN || "",
16
+ FLOWRIX_API_BASE: runtimeConfig.public.FLOWRIX_API_BASE || env.FLOWRIX_API_BASE || runtimeConfig.FLOWRIX_API_BASE || "",
17
+ FLOWRIX_CACHE: runtimeConfig.public.FLOWRIX_CACHE || env.FLOWRIX_CACHE || runtimeConfig.FLOWRIX_CACHE || false,
18
+ FLOWRIX_CDN: runtimeConfig.public.FLOWRIX_CDN || env.FLOWRIX_CDN || runtimeConfig.FLOWRIX_CDN || ""
28
19
  });
29
20
  const resolver = createResolver(import.meta.url);
30
21
  await installModule("@pinia/nuxt");
@@ -11,7 +11,6 @@ export const useCustomScript = defineStore("CustomScript", {
11
11
  UNIT_RELATIVE: null,
12
12
  DISCOUNTS: null,
13
13
  measurementUnit: null,
14
- promotionSettings: null,
15
14
  B2BTYPE: null,
16
15
  USEBASEPRICE: null,
17
16
  BASEPRICE: null,
@@ -19,9 +19,8 @@ const parseCookies = (cookieString) => {
19
19
  };
20
20
  async function request(method, config = {}, endpoint, options = {}) {
21
21
  const FLOWRIX_API_KEY = config.public?.FLOWRIX_API_KEY || "";
22
- const FLOWRIX_API_SECRET = config.public?.FLOWRIX_API_SECRET || "";
23
22
  const FLOWRIX_API_ORIGIN = config.public?.FLOWRIX_API_ORIGIN || "";
24
- let FLOWRIX_API_BASE = config.public?.FLOWRIX_API_BASE_V2 || "";
23
+ let FLOWRIX_API_BASE = config.public?.FLOWRIX_API_BASE || "";
25
24
  const cookiesObj = parseCookies(config.cookies || "");
26
25
  const authToken = cookiesObj["authToken"];
27
26
  const headers = {
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "POST",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY,
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN,
12
11
  "Content-Type": "application/json"
13
12
  },
@@ -9,15 +9,10 @@ export default defineEventHandler(async (event) => {
9
9
  statusMessage: "Email and password are required"
10
10
  });
11
11
  }
12
- console.log("Environment check:");
13
- console.log("API_BASE:", process.env.FLOWRIX_API_KEY);
14
- console.log("API_KEY present:", process.env.FLOWRIX_API_SECRET);
15
- console.log("API_SECRET present:", process.env.FLOWRIX_API_ORIGIN);
16
12
  const response = await fetch(`${process.env.FLOWRIX_API_BASE}login/`, {
17
13
  method: "POST",
18
14
  headers: {
19
15
  "x-public-key": process.env.FLOWRIX_API_KEY,
20
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
21
16
  "Origin": process.env.FLOWRIX_API_ORIGIN,
22
17
  "Content-Type": "application/json"
23
18
  },
@@ -6,7 +6,6 @@ export default defineEventHandler(async (event) => {
6
6
  method: "POST",
7
7
  headers: {
8
8
  "x-public-key": process.env.FLOWRIX_API_KEY,
9
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
10
9
  "Origin": process.env.FLOWRIX_API_ORIGIN,
11
10
  "Authorization": `Bearer ${accessTok || ""}`
12
11
  }
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "POST",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY,
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN,
12
11
  "Content-Type": "application/json"
13
12
  },
@@ -12,13 +12,11 @@ export default defineEventHandler(async (event) => {
12
12
  const config = useRuntimeConfig();
13
13
  const apiBase = config.apiBase;
14
14
  const apiKey = config.apiKey;
15
- const apiSecret = config.apiSecret;
16
15
  const apiOrigin = config.apiOrigin;
17
16
  const response = await fetch(`${apiBase}user/session`, {
18
17
  method: "GET",
19
18
  headers: {
20
19
  "x-public-key": apiKey,
21
- "x-api-secret": apiSecret,
22
20
  "Origin": apiOrigin || "",
23
21
  "Authorization": `Bearer ${token}`,
24
22
  "Content-Type": "application/json",
@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
8
8
  method: "POST",
9
9
  headers: {
10
10
  "x-public-key": process.env.FLOWRIX_API_KEY,
11
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
12
11
  "Origin": process.env.FLOWRIX_API_ORIGIN,
13
12
  "Content-Type": "application/json",
14
13
  // <--- CHANGE THIS
@@ -6,7 +6,6 @@ export default defineEventHandler(async (event) => {
6
6
  method: "GET",
7
7
  headers: {
8
8
  "x-public-key": process.env.FLOWRIX_API_KEY,
9
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
10
9
  "Origin": process.env.FLOWRIX_API_ORIGIN,
11
10
  Authorization: authHeader
12
11
  // Use the authorization header if available
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "POST",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY,
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN,
12
11
  "Content-Type": "application/json"
13
12
  },
@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
8
8
  method: "POST",
9
9
  headers: {
10
10
  "x-public-key": process.env.FLOWRIX_API_KEY,
11
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
12
11
  "Origin": process.env.FLOWRIX_API_ORIGIN
13
12
  },
14
13
  body
@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
8
8
  method: "POST",
9
9
  headers: {
10
10
  "x-public-key": process.env.FLOWRIX_API_KEY,
11
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
12
11
  "Origin": process.env.FLOWRIX_API_ORIGIN
13
12
  },
14
13
  body
@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
8
8
  method: "GET",
9
9
  headers: {
10
10
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
11
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
12
11
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
13
12
  "Authorization": `Bearer ${accessTok || ""}`
14
13
  }
@@ -10,7 +10,6 @@ export default defineEventHandler(async (event) => {
10
10
  method: "GET",
11
11
  headers: {
12
12
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
13
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
14
13
  "Origin": process.env.FLOWRIX_API_ORIGIN || ""
15
14
  },
16
15
  query
@@ -22,7 +21,6 @@ export default defineEventHandler(async (event) => {
22
21
  method: "POST",
23
22
  headers: {
24
23
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
25
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
26
24
  "Origin": process.env.FLOWRIX_API_ORIGIN || ""
27
25
  },
28
26
  body,
@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
8
8
  method,
9
9
  headers: {
10
10
  "x-public-key": process.env.FLOWRIX_API_KEY,
11
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
12
11
  "Origin": process.env.FLOWRIX_API_ORIGIN
13
12
  },
14
13
  body
@@ -9,7 +9,6 @@ export default defineEventHandler(async (event) => {
9
9
  method: "POST",
10
10
  headers: {
11
11
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
12
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
13
12
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
14
13
  "Authorization": `Bearer ${accessTok || ""}`
15
14
  },
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "POST",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
12
11
  "Authorization": `Bearer ${accessTok || ""}`,
13
12
  "Content-Type": "application/json",
@@ -14,7 +14,6 @@ export default defineEventHandler(async (event) => {
14
14
  method: "PATCH",
15
15
  headers: {
16
16
  "x-public-key": process.env.FLOWRIX_API_KEY,
17
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
18
17
  "Origin": process.env.FLOWRIX_API_ORIGIN,
19
18
  "Authorization": `Bearer ${accessTok || ""}`
20
19
  }
@@ -14,7 +14,6 @@ export default defineEventHandler(async (event) => {
14
14
  method: "POST",
15
15
  headers: {
16
16
  "x-public-key": process.env.FLOWRIX_API_KEY,
17
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
18
17
  "Origin": process.env.FLOWRIX_API_ORIGIN,
19
18
  "Authorization": `Bearer ${accessTok || ""}`,
20
19
  "Content-Type": "application/json",
@@ -16,7 +16,6 @@ export default defineEventHandler(async (event) => {
16
16
  method: "PATCH",
17
17
  headers: {
18
18
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
19
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
20
19
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
21
20
  "Authorization": `Bearer ${accessTok || ""}`,
22
21
  "Content-Type": "application/json",
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "DELETE",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY,
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN,
12
11
  "Authorization": `Bearer ${accessTok || ""}`
13
12
  }
@@ -5,7 +5,6 @@ export default defineEventHandler(async (event) => {
5
5
  const response = await $fetch(`${process.env.FLOWRIX_API_BASE}customer/cards`, {
6
6
  headers: {
7
7
  "x-public-key": process.env.FLOWRIX_API_KEY,
8
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
9
8
  "Origin": process.env.FLOWRIX_API_ORIGIN,
10
9
  "Authorization": `Bearer ${accessTok || ""}`
11
10
  }
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "POST",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
12
11
  "Authorization": `Bearer ${accessTok || ""}`,
13
12
  "Content-Type": "application/json",
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "POST",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY,
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN
12
11
  },
13
12
  body
@@ -5,7 +5,6 @@ export default defineEventHandler(async (event) => {
5
5
  const response = await $fetch(`${process.env.FLOWRIX_API_BASE}customer/orders`, {
6
6
  headers: {
7
7
  "x-public-key": process.env.FLOWRIX_API_KEY,
8
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
9
8
  "Origin": process.env.FLOWRIX_API_ORIGIN,
10
9
  "Authorization": `Bearer ${accessTok || ""}`
11
10
  }
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "POST",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
12
11
  "Authorization": `Bearer ${accessTok || ""}`,
13
12
  "Content-Type": "application/json",
@@ -5,7 +5,6 @@ export default defineEventHandler(async (event) => {
5
5
  const response = await $fetch(`${process.env.FLOWRIX_API_BASE}customer/quotations`, {
6
6
  headers: {
7
7
  "x-public-key": process.env.FLOWRIX_API_KEY,
8
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
9
8
  "Origin": process.env.FLOWRIX_API_ORIGIN,
10
9
  "Authorization": `Bearer ${accessTok || ""}`
11
10
  }
@@ -6,7 +6,6 @@ export default defineEventHandler(async (event) => {
6
6
  method: "POST",
7
7
  headers: {
8
8
  "x-public-key": process.env.FLOWRIX_API_KEY,
9
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
10
9
  "Origin": process.env.FLOWRIX_API_ORIGIN
11
10
  },
12
11
  body
@@ -12,7 +12,6 @@ export default defineEventHandler(async (event) => {
12
12
  {
13
13
  headers: {
14
14
  "x-public-key": process.env.FLOWRIX_API_KEY,
15
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
16
15
  "Origin": process.env.FLOWRIX_API_ORIGIN,
17
16
  "Authorization": `Bearer ${accessTok || ""}`
18
17
  }
@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
8
8
  method: "POST",
9
9
  headers: {
10
10
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
11
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
12
11
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
13
12
  "Authorization": `Bearer ${accessTok || ""}`,
14
13
  "Content-Type": "application/json",
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "POST",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
12
11
  "Authorization": `Bearer ${accessTok || ""}`,
13
12
  "Content-Type": "application/json",
@@ -16,7 +16,6 @@ export default defineEventHandler(async (event) => {
16
16
  method: "POST",
17
17
  headers: {
18
18
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
19
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
20
19
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
21
20
  "Authorization": `Bearer ${accessTok || ""}`,
22
21
  "Content-Type": "application/json",
@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
8
8
  method: "POST",
9
9
  headers: {
10
10
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
11
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
12
11
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
13
12
  "Authorization": `Bearer ${accessTok || ""}`,
14
13
  "Content-Type": "application/json",
@@ -5,7 +5,6 @@ export default defineEventHandler(async (event) => {
5
5
  const response = await $fetch(`${process.env.FLOWRIX_API_BASE}customer/wishlist`, {
6
6
  headers: {
7
7
  "x-public-key": process.env.FLOWRIX_API_KEY,
8
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
9
8
  "Origin": process.env.FLOWRIX_API_ORIGIN,
10
9
  "Authorization": `Bearer ${accessTok || ""}`
11
10
  }
@@ -7,7 +7,6 @@ export default defineEventHandler(async (event) => {
7
7
  method: "GET",
8
8
  headers: {
9
9
  "x-public-key": process.env.FLOWRIX_API_KEY,
10
- "x-api-secret": process.env.FLOWRIX_API_SECRET,
11
10
  "Origin": process.env.FLOWRIX_API_ORIGIN,
12
11
  "Authorization": `Bearer ${accessTok || ""}`
13
12
  }
@@ -8,7 +8,6 @@ export default defineEventHandler(async (event) => {
8
8
  method: "POST",
9
9
  headers: {
10
10
  "x-public-key": process.env.FLOWRIX_API_KEY || "",
11
- "x-api-secret": process.env.FLOWRIX_API_SECRET || "",
12
11
  "Origin": process.env.FLOWRIX_API_ORIGIN || "",
13
12
  "Authorization": `Bearer ${accessTok || ""}`,
14
13
  "Content-Type": "application/json",
@@ -38,7 +38,6 @@ export function useApi() {
38
38
  const authStore = useAuthStore();
39
39
  const config = useRuntimeConfig();
40
40
  const FLOWRIX_API_KEY = config.public.FLOWRIX_API_KEY;
41
- const FLOWRIX_API_SECRET = config.public.FLOWRIX_API_SECRET;
42
41
  const FLOWRIX_API_ORIGIN = config.public.FLOWRIX_API_ORIGIN;
43
42
  const FLOWRIX_API_BASE = config.public.FLOWRIX_API_BASE;
44
43
  const baseURL = FLOWRIX_API_BASE || "";
@@ -47,7 +46,6 @@ export function useApi() {
47
46
  const headers = {
48
47
  "Content-Type": "application/json",
49
48
  "x-public-key": FLOWRIX_API_KEY,
50
- "x-api-secret": FLOWRIX_API_SECRET,
51
49
  // Add location headers from cookies
52
50
  ...locationHeaders,
53
51
  // Add extra headers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowrix",
3
- "version": "1.0.1-beta.93",
3
+ "version": "1.0.1-beta.94",
4
4
  "description": "Plug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
5
5
  "license": "MIT",
6
6
  "type": "module",