vslides 1.0.21 → 1.0.23
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 +5 -2
- 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;
|
|
@@ -4434,7 +4437,7 @@ async function pollForAuth(slug, pollSecret) {
|
|
|
4434
4437
|
process.exit(ExitCode.NetworkError);
|
|
4435
4438
|
}
|
|
4436
4439
|
const { status: sessionStatus, cliAuthToken } = result.data;
|
|
4437
|
-
if (cliAuthToken && (sessionStatus === "authenticated" || sessionStatus === "running")) {
|
|
4440
|
+
if (cliAuthToken && (sessionStatus === "restoring" || sessionStatus === "authenticated" || sessionStatus === "running")) {
|
|
4438
4441
|
const validateResult = await validateCLIAuth(cliAuthToken);
|
|
4439
4442
|
if (validateResult.ok && validateResult.data.valid && validateResult.data.email && validateResult.data.expiresAt) {
|
|
4440
4443
|
saveCLIAuth(cliAuthToken, validateResult.data.email, validateResult.data.expiresAt);
|