mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-18 23:48:43 -05:00
fix dep
This commit is contained in:
@@ -270,7 +270,6 @@ export const initializeServices = async ({
|
||||
});
|
||||
const maintenanceWindowService = new MaintenanceWindowService({
|
||||
db,
|
||||
settingsService,
|
||||
errorService,
|
||||
monitorsRepository,
|
||||
});
|
||||
|
||||
@@ -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",
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user