Updates
This commit is contained in:
parent
14481494c6
commit
2b51b4b276
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "2.8.8",
|
"version": "2.8.9",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -40,6 +40,7 @@ function logoutUser({
|
|||||||
});
|
});
|
||||||
const authKeyName = cookieNames.keyCookieName;
|
const authKeyName = cookieNames.keyCookieName;
|
||||||
const csrfName = cookieNames.csrfCookieName;
|
const csrfName = cookieNames.csrfCookieName;
|
||||||
|
const oneTimeCodeName = getAuthCookieNames().oneTimeCodeName;
|
||||||
|
|
||||||
/** @type {string | undefined} */
|
/** @type {string | undefined} */
|
||||||
const decryptedUserJSON = (() => {
|
const decryptedUserJSON = (() => {
|
||||||
@ -79,6 +80,7 @@ function logoutUser({
|
|||||||
response?.setHeader("Set-Cookie", [
|
response?.setHeader("Set-Cookie", [
|
||||||
`${authKeyName}=null;max-age=0`,
|
`${authKeyName}=null;max-age=0`,
|
||||||
`${csrfName}=null;max-age=0`,
|
`${csrfName}=null;max-age=0`,
|
||||||
|
`${oneTimeCodeName}=null;max-age=0`,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const csrf = userObject.csrf_k;
|
const csrf = userObject.csrf_k;
|
||||||
|
Loading…
Reference in New Issue
Block a user