Skip to content

Commit

Permalink
Update the custom session store for redis 4 (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath authored Mar 23, 2022
1 parent 2c3529b commit c619f67
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,15 @@ By default the session is stored in an encrypted cookie. But when the session ge

```js
const { auth } = require('express-openid-connect');
const redis = require('redis');
const { createClient } = require('redis');
const RedisStore = require('connect-redis')(auth);

const redisClient = redis.createClient();
// redis@v4
let redisClient = createClient({ legacyMode: true });
redisClient.connect().catch(console.error);

// redis@v3
let redisClient = createClient();

app.use(
auth({
Expand Down

0 comments on commit c619f67

Please sign in to comment.