-
-
Notifications
You must be signed in to change notification settings - Fork 75
Closed
Labels
Description
With the following
import connectPgSimple from 'connect-pg-simple';
const store = new (connectPgSimple(session))({createTableIfMissing: true} as any);
app.use(session({secret: '...', saveUninitialized: true, resave: false, store})); // defaults: httpOnlyI just get Failed to prune sessions: relation "session" does not exist on start and error: relation "session" does not exist on the first request.
Also, without as any I get Argument of type '{ createTableIfMissing: boolean; }' is not assignable to parameter of type 'PGStoreOptions'., so @types/connect-pg-simple seems to be outdated.
"@types/connect-pg-simple": "^4.2.2",
"connect-pg-simple": "^6.2.1",
"express": "^4.17.1",
"express-session": "^1.17.1",
"typescript": "^4.1.5",AndrewMurtagh and prionkor