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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [1.1.0-beta.6](https://github.com/DrewBradfordXYZ/quickbase-js/compare/v1.1.0-beta.5...v1.1.0-beta.6) (2025-03-13)
6
+
7
+
8
+ ### Features
9
+
10
+ * omit credientials for all api calls that are not fetching a temp token ([b1b4aae](https://github.com/DrewBradfordXYZ/quickbase-js/commit/b1b4aae02aaa655e6eaab2fe0d532d526e6dc69f))
11
+
5
12
  ## [1.1.0-beta.5](https://github.com/DrewBradfordXYZ/quickbase-js/compare/v1.1.0-beta.4...v1.1.0-beta.5) (2025-03-13)
6
13
 
7
14
 
@@ -7087,7 +7087,7 @@ function quickbase(config) {
7087
7087
  basePath: baseUrl,
7088
7088
  headers: { ...baseHeaders },
7089
7089
  fetchApi: fetchApi || defaultFetch,
7090
- credentials: useTempTokens ? "include" : "omit",
7090
+ credentials: "omit", // Default to "omit" for all requests
7091
7091
  });
7092
7092
  if (!configuration.fetchApi && typeof globalThis.window === "undefined") {
7093
7093
  throw new Error("fetchApi must be provided in non-browser environments (e.g., Node.js)");
@@ -7131,7 +7131,7 @@ function quickbase(config) {
7131
7131
  const response = await effectiveFetch(`https://api.quickbase.com/v1/auth/temporary/${dbid}`, {
7132
7132
  method: "GET",
7133
7133
  headers: { ...baseHeaders },
7134
- credentials: "include",
7134
+ credentials: "include", // Explicitly include credentials for token fetch
7135
7135
  });
7136
7136
  if (!response.ok) {
7137
7137
  const errorBody = await response.json();
@@ -7157,7 +7157,9 @@ function quickbase(config) {
7157
7157
  methodInfo.paramMap[0] === "requestParameters"
7158
7158
  ? { requestParameters: params }
7159
7159
  : params;
7160
- let requestOptions = {};
7160
+ let requestOptions = {
7161
+ credentials: "omit", // Explicitly set to "omit" for API calls
7162
+ };
7161
7163
  const selectedToken = initialTempToken || (userToken && !useTempTokens ? userToken : undefined);
7162
7164
  if (methodName === "getTempTokenDBID" && useTempTokens) {
7163
7165
  const dbid = extractDbid(params, "No dbid provided for getTempTokenDBID");