diff --git a/packages/backend/src/configs/session.config.ts b/packages/backend/src/configs/session.config.ts index 456bda54..310aae4d 100644 --- a/packages/backend/src/configs/session.config.ts +++ b/packages/backend/src/configs/session.config.ts @@ -2,15 +2,15 @@ import { randomUUID } from 'node:crypto'; import * as dotenv from 'dotenv'; dotenv.config(); - +type none = 'none'; export const sessionConfig = { secret: process.env.COOKIE_SECRET || randomUUID().toString(), resave: false, saveUninitialized: false, name: process.env.COOKIE_NAME, - secure: true, - sameSite: 'none', cookie: { maxAge: Number(process.env.COOKIE_MAX_AGE), + secure: true, + sameSite: 'none' as none, }, };