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": {