mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
feat(server/index.js): add warning message if social login is disabled (#635)
This commit is contained in:
parent
e3bf674cb7
commit
3e5c5a828d
1 changed files with 4 additions and 0 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue