LibreChat/api/strategies
Marco Beretta b7fef6958b
🔒refactor: social login and remove direct user model access in strategies (#2946)
* refactor: checking `ALLOW_SOCIAL_REGISTRATION` with `isEnabled`

* feat: Add findUserByEmail function to UserService

This commit adds a new function, , to the  module. This function retrieves a user document from the database based on the provided email. It returns the user document if found, otherwise it returns null. If there is a problem during user retrieval, an error is thrown.

* refactor: add socialLogin to remove repetitive code
2024-06-06 13:23:11 -04:00
..
discordStrategy.js 🔒refactor: social login and remove direct user model access in strategies (#2946) 2024-06-06 13:23:11 -04:00
facebookStrategy.js 🔒refactor: social login and remove direct user model access in strategies (#2946) 2024-06-06 13:23:11 -04:00
githubStrategy.js 🔒refactor: social login and remove direct user model access in strategies (#2946) 2024-06-06 13:23:11 -04:00
googleStrategy.js 🔒refactor: social login and remove direct user model access in strategies (#2946) 2024-06-06 13:23:11 -04:00
index.js 🔒 feature(auth): LDAP Authentication (#2859) 2024-05-29 17:46:20 -04:00
joseStrategy.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
jwtStrategy.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
ldapStrategy.js 🔒 feature(auth): LDAP Authentication (#2859) 2024-05-29 17:46:20 -04:00
localStrategy.js 🅰️ feat: Azure Config to Allow Different Deployments per Model (#1863) 2024-02-26 14:12:25 -05:00
openidStrategy.js 🔧 chore: Update OpenIDStrategy Logging (#2911) 2024-05-30 10:48:03 -04:00
process.js 🤖 feat: Gemini 1.5 Support (+Vertex AI) (#2383) 2024-04-16 08:32:40 -04:00
socialLogin.js 🔒refactor: social login and remove direct user model access in strategies (#2946) 2024-06-06 13:23:11 -04:00
validators.js 🌍 feat: Extend regex to support international usernames (#1918) 2024-02-28 14:27:57 -05:00
validators.spec.js 🌍 feat: Extend regex to support international usernames (#1918) 2024-02-28 14:27:57 -05:00