Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

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

Danny Avila3e5c5a828dc6
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');