mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-27 15:05:38 -04:00
Revert "make cookies more durable"
This reverts commit 3ee4bdd930f9170906fb9b045b431953328c8b07.
This commit is contained in:
parent
4354d5e371
commit
fdd9c5a157
@ -7,7 +7,6 @@ import grant from "grant";
|
|||||||
import router from "./routes/user";
|
import router from "./routes/user";
|
||||||
import { loadSuml } from './loader';
|
import { loadSuml } from './loader';
|
||||||
import {isGranted} from "../src/helpers";
|
import {isGranted} from "../src/helpers";
|
||||||
import cookieSettings from "../src/cookieSettings";
|
|
||||||
|
|
||||||
global.config = loadSuml('config');
|
global.config = loadSuml('config');
|
||||||
|
|
||||||
@ -26,7 +25,7 @@ app.use(express.urlencoded({ extended: true }));
|
|||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
app.use(session({
|
app.use(session({
|
||||||
secret: process.env.SECRET,
|
secret: process.env.SECRET,
|
||||||
cookie: cookieSettings,
|
cookie: {},
|
||||||
resave: false,
|
resave: false,
|
||||||
saveUninitialized: false,
|
saveUninitialized: false,
|
||||||
}));
|
}));
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
const inAYear = new Date();
|
|
||||||
inAYear.setFullYear(inAYear.getFullYear() + 1);
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
secure: process.env.NODE_ENV === 'production',
|
maxAge: 365 * 24 * 60 * 60,
|
||||||
expires: inAYear,
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user