This commit is contained in:
Alex Holliday
2026-01-20 23:10:08 +00:00
parent 952c70fca4
commit f436e15569
2 changed files with 0 additions and 27 deletions
-1
View File
@@ -270,7 +270,6 @@ export const initializeServices = async ({
});
const maintenanceWindowService = new MaintenanceWindowService({
db,
settingsService,
errorService,
monitorsRepository,
});
-26
View File
@@ -1,26 +0,0 @@
/**
* Get standardized cookie options for authentication tokens
* @param {Object} options - Additional cookie options
* @returns {Object} Cookie options object
*/
export const getAuthCookieOptions = (options = {}) => {
return {
httpOnly: true,
secure: process.env.NODE_ENV === "production",
sameSite: "strict",
maxAge: 2 * 60 * 60 * 1000, // 2 hours (matches JWT TTL)
...options,
};
};
/**
* Clear cookie options for authentication tokens
* @returns {Object} Cookie clear options object
*/
export const getClearAuthCookieOptions = () => {
return {
httpOnly: true,
secure: process.env.NODE_ENV === "production",
sameSite: "strict",
};
};