This commit is contained in:
Jeremy Kirsch 2026-05-17 20:35:05 +02:00
parent 60262323a3
commit db35882a18
3 changed files with 25 additions and 24 deletions

View File

@ -63,7 +63,7 @@ mysql -u blair_user -p blair_dashboard < /var/www/blair/schema.sql
```
https://deinedomain.de/auth/discord/callback
```
4. Kopiere **Client ID** und **Client Secret**
4. Kopiere **Client ID** 1505635813072044062 und **Client Secret** fXQyM6oXGQWR23m3QbilHLTJiObg_kP-
---

View File

@ -14,7 +14,7 @@
"passport": "^0.6.0",
"passport-discord": "^0.1.4",
"dotenv": "^16.3.1",
"connect-mysql-session": "^0.4.1",
"express-mysql-session": "^3.0.0",
"helmet": "^7.1.0",
"cors": "^2.8.5"
},

View File

@ -31,7 +31,7 @@ app.use(express.json());
app.use(express.urlencoded({ extended: true }));
// ── Session with MySQL store ──────────────────────────
const MySQLStore = require('connect-mysql-session')(session);
const MySQLStore = require('express-mysql-session')(session);
app.use(session({
secret: process.env.SESSION_SECRET,
resave: false,
@ -42,6 +42,7 @@ app.use(session({
database: process.env.DB_NAME,
user: process.env.DB_USER,
password: process.env.DB_PASS,
createDatabaseTable: true,
}),
cookie: {
maxAge: 7 * 24 * 60 * 60 * 1000, // 7 Tage