This commit is contained in:
Tben 2023-06-24 14:23:22 +01:00
parent b2be7a0a62
commit 350e7a4ddf
2 changed files with 5 additions and 6 deletions

View File

@ -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<boolean>} - 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);
}
//////////////////////////////////////////////////////////////////////////////////

View File

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