Skip to content

Commit 4273d62

Browse files
committedNov 3, 2018
Revert "Add support for top-level "sh" auth"
This reverts commit c493d65.
1 parent 847c71e commit 4273d62

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

‎src/now.js‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,6 @@ const main = async (argv_) => {
183183
}
184184
}
185185

186-
// Support top-level "sh" config
187-
if (config && !config.sh) {
188-
config.sh = config;
189-
}
190-
191186
let authConfigExists
192187

193188
try {
@@ -221,11 +216,6 @@ const main = async (argv_) => {
221216
return 1;
222217
}
223218

224-
// Support top-level "sh" auth
225-
if (!Array.isArray(authConfig.credentials) && authConfig.token) {
226-
authConfig.credentials = [{ provider: 'sh', token: authConfig.token }];
227-
}
228-
229219
if (!Array.isArray(authConfig.credentials)) {
230220
console.error(
231221
error(

0 commit comments

Comments
 (0)