try with exec sh

This commit is contained in:
ibrahim0814
2019-11-13 23:41:15 -08:00
parent 7ba41fc0d6
commit db0171f588
1059 changed files with 237707 additions and 41 deletions

View File

@@ -0,0 +1,21 @@
module.exports = validateAuth;
function validateAuth(auth) {
if (typeof auth === "string") {
return;
}
if (typeof auth === "function") {
return;
}
if (auth.username && auth.password) {
return;
}
if (auth.clientId && auth.clientSecret) {
return;
}
throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`);
}