chatwithcloud
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -119,8 +119,8 @@ "use strict"; | ||
.promise(); | ||
consola_1.consola.info(`Please finish the SSO authentication in your browser: ${auth.verificationUriComplete}`); | ||
consola_1.consola.box(`Please finish the SSO authentication in your browser: ${auth.verificationUriComplete}`); | ||
consola_1.consola.start("Waiting for SSO authentication completion..."); | ||
let handleId; | ||
return new Promise((resolve) => { | ||
setInterval(() => __awaiter(this, void 0, void 0, function* () { | ||
handleId = setInterval(() => __awaiter(this, void 0, void 0, function* () { | ||
try { | ||
consola_1.consola.start("Creating token..."); | ||
const createTokenReponse = yield oidc | ||
@@ -144,6 +144,9 @@ .createToken({ | ||
consola_1.consola.success("SSO authentication completed!"); | ||
clearInterval(handleId); | ||
return resolve(credentials.roleCredentials); | ||
} | ||
catch (error) { | ||
consola_1.consola.log("Still waiting...", error.message); | ||
if (error.message !== null) { | ||
consola_1.consola.error(error); | ||
} | ||
} | ||
@@ -150,0 +153,0 @@ }), 2500); |
{ | ||
"name": "chatwithcloud", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "A CLI to chat with your AWS cloud, literally.", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23850
463