LibreChat/api
Lars Kiesow dd927583a7
Provide production-ready memory store for eypress-session (#5212)
The `express-session` library comes with a session storage meant for
testing by default. That is why you get a message like this when you
start up LibreChat with OIDC enabled:

    Warning: connect.session() MemoryStore is not
    designed for a production environment, as it will leak
    memory, and will not scale past a single process.

LibreChat can already use Redis as a session storage, although Redis support
is still marked as experimental. It also makes the set-up more complex, since
you will need to configure and run yet another service.

This pull request provides a simple alternative by using a in-memory session
store marked as a production-ready alternative by the guys from
`express-session`¹. You can still configure Redis, but this provides a simple,
good default for everyone else.

See also https://github.com/danny-avila/LibreChat/discussions/1014

¹⁾ https://github.com/expressjs/session?tab=readme-ov-file#compatible-session-stores
2025-01-09 11:23:51 -05:00
..
app 🐛 fix: Ensure Default ModelSpecs Are Set Correctly (#5218) 2025-01-08 21:57:00 -05:00
cache 🔄 refactor: Consolidate Tokenizer; Fix Jest Open Handles (#5175) 2025-01-03 18:11:14 -05:00
config 🔧 feat: Initial MCP Support (Tools) (#5015) 2024-12-17 13:12:57 -05:00
lib 🚀 feat: Add Gemini 2.0 Support, Update Packages and Deprecations (#4951) 2024-12-11 14:11:27 -05:00
models 🐛 fix: Correct Endpoint/Icon Handling, Update Module Resolutions (#5205) 2025-01-07 11:09:18 -05:00
server Provide production-ready memory store for eypress-session (#5212) 2025-01-09 11:23:51 -05:00
strategies 🔐 fix: Assign ADMIN role based on first registration in LDAP strategy (#4974) 2024-12-13 11:40:24 -05:00
test 🔄 refactor: Consolidate Tokenizer; Fix Jest Open Handles (#5175) 2025-01-03 18:11:14 -05:00
utils v0.7.6 (#5064) 2024-12-20 11:43:37 -05:00
jest.config.js fix: Enhance Test Coverage and Fix Compatibility Issues 👷‍♂️ (#1363) 2023-12-15 13:27:13 -05:00
jsconfig.json feat(api): initial Redis support; fix(SearchBar): proper debounce (#1039) 2023-10-11 17:05:47 -04:00
package.json Provide production-ready memory store for eypress-session (#5212) 2025-01-09 11:23:51 -05:00
typedefs.js 🤖 feat: Support Google Agents, fix Various Provider Configurations (#5126) 2024-12-28 17:15:03 -05:00