fix(config): don’t require token if in appMode

This commit is contained in:
Rhys Arkins 2019-01-13 06:49:46 +01:00
parent c7b8e79426
commit 1a610ff3f5

View file

@ -114,6 +114,7 @@ async function parseConfigs(env, argv) {
credentials.token = base64(`${username}:${password}`); credentials.token = base64(`${username}:${password}`);
} }
if (!global.appMode) {
if (!credentials.token) { if (!credentials.token) {
throw new Error(`You need to supply a ${platformInfo.name} token.`); throw new Error(`You need to supply a ${platformInfo.name} token.`);
} }
@ -122,6 +123,7 @@ async function parseConfigs(env, argv) {
...credentials, ...credentials,
default: true, default: true,
}); });
}
if (config.autodiscover) { if (config.autodiscover) {
// Autodiscover list of repositories // Autodiscover list of repositories