Skip to content

Commit

Permalink
removes redisClient
Browse files Browse the repository at this point in the history
  • Loading branch information
Segerlu committed Nov 6, 2023
1 parent e85c908 commit 2330a53
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ const getAllowedOriginMiddleware = (req, res, next) => {

const redisSession = () => {

let redisOptions = {
host: process.env.REDIS_URL,
port: '6379',
client: client
};
const secureSession = (process.env.SECURE_SESSION.toLowerCase() === 'true');
const sessionCookie = {
maxAge: getMaxAge(),
Expand All @@ -134,7 +139,7 @@ const redisSession = () => {
}

return session({
store: new RedisStore({client: redisClient}),
store: new RedisStore(redisOptions),
secret: secret,
resave: false,
saveUninitialized: true,
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dod-advana/advana-api-auth",
"version": "2.5.0-beta.8",
"version": "2.5.0-beta.8.1",
"description": "contains middleware shared authentication code",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 2330a53

Please sign in to comment.