LibreChat/api/strategies
Ruben Talstra faf349e0db
fix: Cosmos DB: E11000 duplicate key error
I’ve updated this PR to remove unique: true and sparse: true from the optional social login fields (googleId, facebookId, etc.) and switch them to simple indexes (index: true). This resolves the Cosmos DB “duplicate key” errors caused by multiple null values and ensures compatibility with both Cosmos DB and MongoDB. The email field remains required and unique, preserving overall identity uniqueness.
2025-02-12 19:22:37 +01:00
..
appleStrategy.js 🍎 feat: Apple auth (#5473) 2025-01-31 09:49:09 -05:00
appleStrategy.test.js 🍎 feat: Apple auth (#5473) 2025-01-31 09:49:09 -05:00
discordStrategy.js 🍎 feat: Apple auth (#5473) 2025-01-31 09:49:09 -05:00
facebookStrategy.js 🍎 feat: Apple auth (#5473) 2025-01-31 09:49:09 -05:00
githubStrategy.js feat: added Github Enterprise SSO login (#5621) 2025-02-03 15:30:02 -05:00
googleStrategy.js 🍎 feat: Apple auth (#5473) 2025-01-31 09:49:09 -05:00
index.js feat: added Github Enterprise SSO login (#5621) 2025-02-03 15:30:02 -05:00
jwtStrategy.js 🗨️ feat: Prompts (#3131) 2024-06-20 20:24:32 -04:00
ldapStrategy.js 🔐 fix: Assign ADMIN role based on first registration in LDAP strategy (#4974) 2024-12-13 11:40:24 -05:00
localStrategy.js 🔐 refactor: Unverified User Verification Logic (#4482) 2024-10-21 07:51:45 -04:00
openidStrategy.js 🛂 feat: OpenID Logout Redirect to end_session_endpoint (#5626) 2025-02-03 10:53:04 -05:00
openidStrategy.spec.js 🔧 refactor: Revamp Model and Tool Filtering Logic (#5637) 2025-02-03 16:08:34 -05:00
process.js 📧 feat: email verification (#2344) 2024-06-07 15:06:47 -04:00
socialLogin.js fix: Cosmos DB: E11000 duplicate key error 2025-02-12 19:22:37 +01: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