fix dep
This commit is contained in:
1 parent
952c70fca4
commit
f436e15569
2 files changed
-27
No files matched your search
@@ -270,7 +270,6 @@ export const initializeServices = async ({
|
|||||||
});
|
});
|
||||||
const maintenanceWindowService = new MaintenanceWindowService({
|
const maintenanceWindowService = new MaintenanceWindowService({
|
||||||
db,
|
db,
|
||||||
settingsService,
|
|
||||||
errorService,
|
errorService,
|
||||||
monitorsRepository,
|
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