This commit is contained in:
Tben
2023-06-24 14:31:15 +01:00
parent c288aa504c
commit c9024ee43a
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ const parseClientCookies = require("../utils/parseClientCookies");
*
* @async
*
* @param {object} params - Single object passed
* @param {object|null} 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
@@ -76,7 +76,7 @@ module.exports = async function logout(params) {
//////////////////////////////////////////////////////////////////////////////////
if (socialId) {
const googleClientId = params.googleClientId;
const googleClientId = params?.googleClientId;
if (googleClientId) {
const googleScript = document.createElement("script");