Replace auth.js script with config expression

This commit is contained in:
Zaid Abdulla committed 2019-03-15 02:21:46 -07:00
1 parent 6c6d88e88b
commit 2c9e7e8e29
8 files changed
+283 -237

No files matched your search

-8
View File
@@ -235,11 +235,3 @@ export function getDefault(optionName): string | number | boolean {
return val;
}
export let auth;
// Load authentication scripts
try {
auth = require(resolve(allConfig.CONFIG_DIR as string, "auth.js"));
} catch (error) {
// No auth.js exists
}