chore: Migrate authentication to new tables (#1929)
This work provides a foundation for a more pluggable authentication system such as the one outlined in #1317. closes #1317
This commit is contained in:
@@ -18,7 +18,6 @@ if (
|
||||
console.error(
|
||||
"The SECRET_KEY env variable must be set with the output of `openssl rand -hex 32`"
|
||||
);
|
||||
// $FlowFixMe
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@@ -31,7 +30,6 @@ if (process.env.AWS_ACCESS_KEY_ID) {
|
||||
].forEach((key) => {
|
||||
if (!process.env[key]) {
|
||||
console.error(`The ${key} env variable must be set when using AWS`);
|
||||
// $FlowFixMe
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
@@ -42,7 +40,6 @@ if (process.env.SLACK_KEY) {
|
||||
console.error(
|
||||
`The SLACK_SECRET env variable must be set when using Slack Sign In`
|
||||
);
|
||||
// $FlowFixMe
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
@@ -51,7 +48,6 @@ if (!process.env.URL) {
|
||||
console.error(
|
||||
"The URL env variable must be set to the externally accessible URL, e.g (https://www.getoutline.com)"
|
||||
);
|
||||
// $FlowFixMe
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@@ -59,7 +55,6 @@ if (!process.env.DATABASE_URL) {
|
||||
console.error(
|
||||
"The DATABASE_URL env variable must be set to the location of your postgres server, including authentication and port"
|
||||
);
|
||||
// $FlowFixMe
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@@ -67,7 +62,6 @@ if (!process.env.REDIS_URL) {
|
||||
console.error(
|
||||
"The REDIS_URL env variable must be set to the location of your redis server, including authentication and port"
|
||||
);
|
||||
// $FlowFixMe
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user