@heyamiko/amiko-cli 0.5.3 → 0.5.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 +10 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75133,6 +75133,16 @@ function resolveAuth(cliConfig) {
|
|
|
75133
75133
|
userId: cliConfig.userId
|
|
75134
75134
|
};
|
|
75135
75135
|
}
|
|
75136
|
+
if (cliConfig.apiKey) {
|
|
75137
|
+
return {
|
|
75138
|
+
mode: "connected",
|
|
75139
|
+
billingBase: cliConfig.billingBase,
|
|
75140
|
+
platformKey: cliConfig.apiKey,
|
|
75141
|
+
userId: cliConfig.userId,
|
|
75142
|
+
twinId: cliConfig.twinId,
|
|
75143
|
+
twinToken: cliConfig.twinToken
|
|
75144
|
+
};
|
|
75145
|
+
}
|
|
75136
75146
|
const envToken = process.env.AMIKO_USER_TOKEN;
|
|
75137
75147
|
if (envToken) {
|
|
75138
75148
|
return {
|