@ctil/gql 1.0.19 → 1.0.20
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.cjs +0 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1692,7 +1692,6 @@ var CCRequest = class {
|
|
|
1692
1692
|
this.removeLoginInfo();
|
|
1693
1693
|
throw new Error("Login expired. Please login again.");
|
|
1694
1694
|
}
|
|
1695
|
-
console.log("refreshExpired", refreshExpired);
|
|
1696
1695
|
if (accessExpired && !refreshExpired) {
|
|
1697
1696
|
try {
|
|
1698
1697
|
const refreshResult = await auth.refreshToken({
|
|
@@ -1703,7 +1702,6 @@ var CCRequest = class {
|
|
|
1703
1702
|
const newInfo = refreshResult.refreshToken ?? refreshResult;
|
|
1704
1703
|
this.setLoginInfo(newInfo, this._remember);
|
|
1705
1704
|
} catch (err) {
|
|
1706
|
-
console.log("err", err);
|
|
1707
1705
|
this.removeLoginInfo();
|
|
1708
1706
|
throw new Error("Failed to refresh token. Please login again." + err?.message);
|
|
1709
1707
|
}
|