This commit is contained in:
Tben 2023-06-24 14:38:39 +01:00
parent c9024ee43a
commit 53fb043d05
2 changed files with 5 additions and 3 deletions

View File

@ -52,7 +52,7 @@ module.exports = async function logout(params) {
////////////////////////////////////////
const cookies = parseClientCookies();
const socialId = cookies.datasquirel_social_id;
const socialId = cookies?.datasquirel_social_id && typeof cookies.datasquirel_social_id == "string" && !cookies.datasquirel_social_id.match(/^null$/i) ? cookies.datasquirel_social_id : null;
////////////////////////////////////////
////////////////////////////////////////
@ -75,7 +75,7 @@ module.exports = async function logout(params) {
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
if (socialId) {
if (socialId && !socialId?.match(/^null$/i)) {
const googleClientId = params?.googleClientId;
if (googleClientId) {
@ -110,6 +110,8 @@ module.exports = async function logout(params) {
////////////////////////////////////////
}
};
} else {
resolve(true);
}
////////////////////////////////////////

View File

@ -1,6 +1,6 @@
{
"name": "datasquirel",
"version": "1.1.51",
"version": "1.1.52",
"description": "Cloud-based SQL data management tool",
"main": "index.js",
"scripts": {