From 3e5c5a828dc64edcb8b70c25469cd32f7959b65b Mon Sep 17 00:00:00 2001 From: Danny Avila <110412045+danny-avila@users.noreply.github.com> Date: Thu, 13 Jul 2023 21:49:36 -0400 Subject: [PATCH] feat(server/index.js): add warning message if social login is disabled (#635) --- api/server/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/server/index.js b/api/server/index.js index 7a06ca243d..9f71a66b42 100644 --- a/api/server/index.js +++ b/api/server/index.js @@ -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');