datasquirel/users/logout-user.js
2023-05-06 14:42:40 +01:00

28 lines
964 B
JavaScript

/**
* ==============================================================================
* Main Function
* ==============================================================================
* @param {Object} response - Http response object
*/
module.exports = function ({ response }) {
/**
* Check Encryption Keys
*
* @description Check Encryption Keys
*/
response.setHeader("Set-Cookie", ["datasquirelAuthKey=null;samesite=strict;path=/;HttpOnly=true;Secure=true", "csrf=null;samesite=strict;path=/;HttpOnly=true"]);
/** ********************************************** */
/** ********************************************** */
/** ********************************************** */
return {
success: true,
payload: "User Logged Out",
};
};
/** ********************************************** */
/** ********************************************** */
/** ********************************************** */