From 350e7a4ddfa72934b4296096ab9586b87aeed237 Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Sat, 24 Jun 2023 14:23:22 +0100 Subject: [PATCH] updates --- client/auth/logout.js | 9 ++++----- package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/client/auth/logout.js b/client/auth/logout.js index 07738d5..7c8db1c 100644 --- a/client/auth/logout.js +++ b/client/auth/logout.js @@ -19,15 +19,12 @@ const parseClientCookies = require("../utils/parseClientCookies"); * * @async * - * @param {object} params - Single object passed - * @param {string|null} params.googleClientId - Google client Id if applicable - * * @requires localStorageUser - a "user" JSON string stored in local storage with all * the necessary user data gotten from the server * * @returns {Promise} - Return */ -module.exports = async function logout({ googleClientId }) { +module.exports = async function logout() { /** * == Initialize * @@ -75,7 +72,7 @@ module.exports = async function logout({ googleClientId }) { ////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// - if (googleClientId) { + if (socialId) { const googleScript = document.createElement("script"); googleScript.src = "https://accounts.google.com/gsi/client"; googleScript.className = "social-script-tag"; @@ -109,6 +106,8 @@ module.exports = async function logout({ googleClientId }) { //////////////////////////////////////// } }; + } else { + resolve(true); } ////////////////////////////////////////////////////////////////////////////////// diff --git a/package.json b/package.json index 5b072de..fa2d31b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.45", + "version": "1.1.46", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": {