quickbase-js 1.1.0-beta.5 → 1.1.0-beta.6

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.
@@ -7093,7 +7093,7 @@
7093
7093
  basePath: baseUrl,
7094
7094
  headers: { ...baseHeaders },
7095
7095
  fetchApi: fetchApi || defaultFetch,
7096
- credentials: useTempTokens ? "include" : "omit",
7096
+ credentials: "omit", // Default to "omit" for all requests
7097
7097
  });
7098
7098
  if (!configuration.fetchApi && typeof globalThis.window === "undefined") {
7099
7099
  throw new Error("fetchApi must be provided in non-browser environments (e.g., Node.js)");
@@ -7137,7 +7137,7 @@
7137
7137
  const response = await effectiveFetch(`https://api.quickbase.com/v1/auth/temporary/${dbid}`, {
7138
7138
  method: "GET",
7139
7139
  headers: { ...baseHeaders },
7140
- credentials: "include",
7140
+ credentials: "include", // Explicitly include credentials for token fetch
7141
7141
  });
7142
7142
  if (!response.ok) {
7143
7143
  const errorBody = await response.json();
@@ -7163,7 +7163,9 @@
7163
7163
  methodInfo.paramMap[0] === "requestParameters"
7164
7164
  ? { requestParameters: params }
7165
7165
  : params;
7166
- let requestOptions = {};
7166
+ let requestOptions = {
7167
+ credentials: "omit", // Explicitly set to "omit" for API calls
7168
+ };
7167
7169
  const selectedToken = initialTempToken || (userToken && !useTempTokens ? userToken : undefined);
7168
7170
  if (methodName === "getTempTokenDBID" && useTempTokens) {
7169
7171
  const dbid = extractDbid(params, "No dbid provided for getTempTokenDBID");