Skip to content

Redis version 4+ together with Express Sessions throws error

Redis version 4+ will not work together with express sessions. To solve this use :

const client = createClient({
    legacyMode: true
})

Read more: https://github.com/tj/connect-redis/issues/336