skip to Main Content

how to set "connect-redis" in typescript

Now im following the Fullstack React GraphQL TypeScript Tutorial I get trouble in connectRedis with express-session;;; import connectRedis from "connect-redis"; import session from "express-session"; ... const RedisStore = connectRedis(session); [ERROR] error TS2345: Argument of type 'typeof session' is not assignable…

VIEW QUESTION

Memcached – Session Data is not updating

I m using express-session and memcached-connect package for maintaining session. Everything is working as expected. Here is my implementation: Middleware app.use(session({ rolling: true, secret: 'iloveexpress', proxy: 'true', store: new MemcachedStore({ hosts: ['127.0.0.1:11211'] }), cookie: { maxAge: 86400000, path: "/", domain:…

VIEW QUESTION
Back To Top
Search