From 6fc88741dd81575093f881b69010d73332a80d7a Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Sat, 6 May 2023 14:42:40 +0100 Subject: [PATCH] updates --- package.json | 2 +- users/logout-user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d9dbfae..189e9d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.0.13", + "version": "1.0.14", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": { diff --git a/users/logout-user.js b/users/logout-user.js index b14f29f..2fc2abe 100644 --- a/users/logout-user.js +++ b/users/logout-user.js @@ -10,7 +10,7 @@ module.exports = function ({ response }) { * * @description Check Encryption Keys */ - response.setHeader("Set-Cookie", ["datasquirelAuthKey=none;max-age=0", "usertype=none;max-age=0", `refresh_properties=1;Max-Age=7000`]); + response.setHeader("Set-Cookie", ["datasquirelAuthKey=null;samesite=strict;path=/;HttpOnly=true;Secure=true", "csrf=null;samesite=strict;path=/;HttpOnly=true"]); /** ********************************************** */ /** ********************************************** */