@alessandroraffa/tangyr 0.17.0 → 0.18.0
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.js +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17514,6 +17514,17 @@ async function runAuthLoginCommand(options, logger, transport = createFetchKitTr
|
|
|
17514
17514
|
async function runAuthStatusCommand(options, logger, transport = createFetchKitTransport({ logger })) {
|
|
17515
17515
|
const stored = readStoredCredentials();
|
|
17516
17516
|
if (!stored) {
|
|
17517
|
+
const env2 = classifyEnvCredential();
|
|
17518
|
+
if (env2.kind === "both-set") {
|
|
17519
|
+
logger.info(
|
|
17520
|
+
"No credential is stored, but TANGYR_ACCESS_CLIENT_ID and TANGYR_ACCESS_CLIENT_SECRET are both set \u2014 remote commands will use those. This command reports on the stored credential, so it cannot report their label or expiry; run 'tangyr auth login' to store a credential and see those here."
|
|
17521
|
+
);
|
|
17522
|
+
return;
|
|
17523
|
+
}
|
|
17524
|
+
if (env2.kind === "one-set") {
|
|
17525
|
+
logger.warn(`No credential is stored. ${PARTIAL_ENV_CREDENTIAL_MESSAGE}`);
|
|
17526
|
+
return;
|
|
17527
|
+
}
|
|
17517
17528
|
logger.info(
|
|
17518
17529
|
"Not authenticated. Run 'tangyr auth login' to configure a credential."
|
|
17519
17530
|
);
|