auroq-os 2.3.5 → 2.3.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/lib/auth.js +4 -4
- package/package.json +1 -1
package/lib/auth.js
CHANGED
|
@@ -45,7 +45,7 @@ function statusMessage(status) {
|
|
|
45
45
|
return `Seu acesso esta suspenso. Regularize com o financeiro: ${SUPPORT_CONTACT}`;
|
|
46
46
|
}
|
|
47
47
|
if (status === 'finalizado') {
|
|
48
|
-
return `Seu
|
|
48
|
+
return `Seu periodo na Mentoria Arcane terminou, entao o conteudo nao esta mais liberado. O que voce criou continua seu — projetos, documentos e memoria seguem no seu computador e no seu GitHub. Pra renovar: ${SUPPORT_CONTACT}`;
|
|
49
49
|
}
|
|
50
50
|
return `Seu acesso nao esta ativo (${status || 'desconhecido'}). Contato: ${SUPPORT_CONTACT}`;
|
|
51
51
|
}
|
|
@@ -150,7 +150,7 @@ async function interactiveLogin({ forceFresh = false } = {}) {
|
|
|
150
150
|
process.exit(1);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
if (status !== 'ativo'
|
|
153
|
+
if (status !== 'ativo') {
|
|
154
154
|
await client.auth.signOut().catch(() => {});
|
|
155
155
|
err(statusMessage(status));
|
|
156
156
|
process.exit(1);
|
|
@@ -208,7 +208,7 @@ async function getValidSession({ allowOffline = true } = {}) {
|
|
|
208
208
|
refresh_token: cred.refresh_token,
|
|
209
209
|
});
|
|
210
210
|
const status = await checkAccess(client);
|
|
211
|
-
if (status !== 'ativo'
|
|
211
|
+
if (status !== 'ativo') {
|
|
212
212
|
err(statusMessage(status));
|
|
213
213
|
credentials.clear();
|
|
214
214
|
process.exit(1);
|
|
@@ -248,7 +248,7 @@ async function getValidSession({ allowOffline = true } = {}) {
|
|
|
248
248
|
process.exit(1);
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
if (status !== 'ativo'
|
|
251
|
+
if (status !== 'ativo') {
|
|
252
252
|
err(statusMessage(status));
|
|
253
253
|
credentials.clear();
|
|
254
254
|
process.exit(1);
|