From 2b51b4b2760eaf26147e0793ab90fef25340c16b Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Tue, 10 Dec 2024 19:19:12 +0100 Subject: [PATCH] Updates --- package.json | 2 +- users/logout-user.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 00221cc..e3f5ceb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/datasquirel", - "version": "2.8.8", + "version": "2.8.9", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": { diff --git a/users/logout-user.js b/users/logout-user.js index e7efb1b..3851289 100644 --- a/users/logout-user.js +++ b/users/logout-user.js @@ -40,6 +40,7 @@ function logoutUser({ }); const authKeyName = cookieNames.keyCookieName; const csrfName = cookieNames.csrfCookieName; + const oneTimeCodeName = getAuthCookieNames().oneTimeCodeName; /** @type {string | undefined} */ const decryptedUserJSON = (() => { @@ -79,6 +80,7 @@ function logoutUser({ response?.setHeader("Set-Cookie", [ `${authKeyName}=null;max-age=0`, `${csrfName}=null;max-age=0`, + `${oneTimeCodeName}=null;max-age=0`, ]); const csrf = userObject.csrf_k;