vslides 1.0.21 → 1.0.22
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/cli.js +4 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3160,7 +3160,10 @@ async function request(path, options = {}) {
|
|
|
3160
3160
|
continue;
|
|
3161
3161
|
}
|
|
3162
3162
|
if (response.status === 401 && !skipAuthCheck) {
|
|
3163
|
-
|
|
3163
|
+
const usedCLIAuth = headers["X-CLI-Auth-Token"] !== void 0;
|
|
3164
|
+
if (usedCLIAuth) {
|
|
3165
|
+
clearCLIAuth();
|
|
3166
|
+
}
|
|
3164
3167
|
throw new AuthExpiredError();
|
|
3165
3168
|
}
|
|
3166
3169
|
let data;
|