@juhuu/sdk-ts 1.2.148 → 1.2.149
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/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -102,6 +102,7 @@ var Service = class {
|
|
102
102
|
}
|
103
103
|
}
|
104
104
|
}
|
105
|
+
console.log("authenticationMode", this.authenticationMode);
|
105
106
|
if (currentOptions.refreshTokensIfNecessary === void 0) {
|
106
107
|
switch (this.authenticationMode) {
|
107
108
|
case "jwt": {
|
@@ -202,9 +203,11 @@ var Service = class {
|
|
202
203
|
responseObject = {
|
203
204
|
ok: false,
|
204
205
|
data: await response?.json(),
|
205
|
-
statusText: response?.statusText ?? "
|
206
|
+
statusText: response?.statusText ?? "",
|
206
207
|
status: response?.status ?? 0
|
207
208
|
};
|
209
|
+
console.log("refreshTokensIfNecessary", options.refreshTokensIfNecessary);
|
210
|
+
console.log("responseObject.status", responseObject.status);
|
208
211
|
if (responseObject.status === 403 && options.refreshTokensIfNecessary === true) {
|
209
212
|
console.log("refreshing tokens...");
|
210
213
|
const oldRefreshToken = await this.getRefreshToken();
|
package/dist/index.mjs
CHANGED
@@ -58,6 +58,7 @@ var Service = class {
|
|
58
58
|
}
|
59
59
|
}
|
60
60
|
}
|
61
|
+
console.log("authenticationMode", this.authenticationMode);
|
61
62
|
if (currentOptions.refreshTokensIfNecessary === void 0) {
|
62
63
|
switch (this.authenticationMode) {
|
63
64
|
case "jwt": {
|
@@ -158,9 +159,11 @@ var Service = class {
|
|
158
159
|
responseObject = {
|
159
160
|
ok: false,
|
160
161
|
data: await response?.json(),
|
161
|
-
statusText: response?.statusText ?? "
|
162
|
+
statusText: response?.statusText ?? "",
|
162
163
|
status: response?.status ?? 0
|
163
164
|
};
|
165
|
+
console.log("refreshTokensIfNecessary", options.refreshTokensIfNecessary);
|
166
|
+
console.log("responseObject.status", responseObject.status);
|
164
167
|
if (responseObject.status === 403 && options.refreshTokensIfNecessary === true) {
|
165
168
|
console.log("refreshing tokens...");
|
166
169
|
const oldRefreshToken = await this.getRefreshToken();
|