feat(server/index.js): add warning message if social login is disabled (#635)

This commit is contained in:
Danny Avila 2023-07-13 21:49:36 -04:00 committed by GitHub
parent e3bf674cb7
commit 3e5c5a828d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,10 @@ config.validate(); // Validate the config
app.set('trust proxy', 1); // trust first proxy
app.use(cors());
if (!process.env.ALLOW_SOCIAL_LOGIN) {
console.warn('Social logins are disabled. Set Envrionment Variable "ALLOW_SOCIAL_LOGIN" to true to enable them.')
}
// OAUTH
app.use(passport.initialize());
require('../strategies/jwtStrategy');