mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
feat: facebook login (#820)
* Facebook strategy * Update user_auth_system.md * Update user_auth_system.md
This commit is contained in:
parent
a569020312
commit
007d51ede1
23 changed files with 155 additions and 27 deletions
|
|
@ -5,6 +5,8 @@ router.get('/', async function (req, res) {
|
|||
try {
|
||||
const appTitle = process.env.APP_TITLE || 'LibreChat';
|
||||
const googleLoginEnabled = !!process.env.GOOGLE_CLIENT_ID && !!process.env.GOOGLE_CLIENT_SECRET;
|
||||
const facebookLoginEnabled =
|
||||
!!process.env.FACEBOOK_CLIENT_ID && !!process.env.FACEBOOK_CLIENT_SECRET;
|
||||
const openidLoginEnabled =
|
||||
!!process.env.OPENID_CLIENT_ID &&
|
||||
!!process.env.OPENID_CLIENT_SECRET &&
|
||||
|
|
@ -27,6 +29,7 @@ router.get('/', async function (req, res) {
|
|||
return res.status(200).send({
|
||||
appTitle,
|
||||
googleLoginEnabled,
|
||||
facebookLoginEnabled,
|
||||
openidLoginEnabled,
|
||||
openidLabel,
|
||||
openidImageUrl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue