Allow database to create tables if they are missing
Update pgStore configuration in replitAuth.ts to set createTableIfMissing to true to resolve authentication issues. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 3a22ac80-cd1d-4441-9e36-f24fc2f4c3de Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3478f7c3-db8c-4fca-9165-3adbdf1b5829/3a22ac80-cd1d-4441-9e36-f24fc2f4c3de/gBqmpbl
This commit is contained in:
@@ -14,6 +14,10 @@ run = ["npm", "run", "start"]
|
|||||||
localPort = 5000
|
localPort = 5000
|
||||||
externalPort = 80
|
externalPort = 80
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 35473
|
||||||
|
externalPort = 3000
|
||||||
|
|
||||||
[workflows]
|
[workflows]
|
||||||
runButton = "Project"
|
runButton = "Project"
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export function getSession() {
|
|||||||
const pgStore = connectPg(session);
|
const pgStore = connectPg(session);
|
||||||
const sessionStore = new pgStore({
|
const sessionStore = new pgStore({
|
||||||
conString: process.env.DATABASE_URL,
|
conString: process.env.DATABASE_URL,
|
||||||
createTableIfMissing: false,
|
createTableIfMissing: true,
|
||||||
ttl: sessionTtl,
|
ttl: sessionTtl,
|
||||||
tableName: "sessions",
|
tableName: "sessions",
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user