This commit is contained in:
Benjamin Toby
2025-01-14 14:51:22 +01:00
parent 09bfbd4214
commit f181b79ef7
4 changed files with 9 additions and 7 deletions
+3 -3
View File
@@ -4,9 +4,9 @@ import parseClientCookies from "../utils/parseClientCookies";
* ===============================================================================
* @description This function uses google identity api to login a user with datasquirel
*/
export default async function logout(
params: { [s: string]: any } | null
): Promise<boolean> {
export default async function logout(params?: {
googleClientId?: any;
}): Promise<boolean> {
try {
const localUser = localStorage.getItem("user");
let targetUser;