@temps-sdk/cli 0.1.3 → 0.1.4
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 +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17750,7 +17750,6 @@ var SECRET_KEYS = {
|
|
|
17750
17750
|
email: "temps_email"
|
|
17751
17751
|
};
|
|
17752
17752
|
async function setSecret(key, value) {
|
|
17753
|
-
const secretsPath = getSecretsPath();
|
|
17754
17753
|
const secrets = await loadSecrets();
|
|
17755
17754
|
secrets[key] = value;
|
|
17756
17755
|
await saveSecrets(secrets);
|
|
@@ -19685,9 +19684,13 @@ async function loginWithApiKey(apiKey) {
|
|
|
19685
19684
|
email: result.email
|
|
19686
19685
|
});
|
|
19687
19686
|
newline();
|
|
19688
|
-
|
|
19689
|
-
|
|
19690
|
-
|
|
19687
|
+
const lines = [
|
|
19688
|
+
result.email ? `Logged in as ${colors.bold(result.email)}` : null,
|
|
19689
|
+
`API: ${colors.muted(config.get("apiUrl"))}`,
|
|
19690
|
+
`Credentials stored in: ${colors.muted(credentials.path)}`
|
|
19691
|
+
].filter(Boolean).join(`
|
|
19692
|
+
`);
|
|
19693
|
+
box(lines, `${icons.sparkles} Welcome to Temps!`);
|
|
19691
19694
|
} catch (err) {
|
|
19692
19695
|
await credentials.clear();
|
|
19693
19696
|
throw new AuthenticationError("Invalid API key");
|