From 229bbf710df29809b7fe0068c45d2c47a1908598 Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Mon, 18 Nov 2024 05:51:04 -0500 Subject: Fix logout --- src/Auth.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/Auth.js') diff --git a/src/Auth.js b/src/Auth.js index 3c50658..d9c21df 100644 --- a/src/Auth.js +++ b/src/Auth.js @@ -45,16 +45,6 @@ export const _getToken = (Just) => (Nothing) => (pair) => () => { return Nothing; }; -export const _getSessionCookie = (Just) => (Nothing) => () => { - let cookie = null; - for (let c of document.cookie.split("; ")) { - const [k, v] = c.split("="); - if (k === "authelia_session") cookie = v; - } - if (cookie) return Just(cookie); - return Nothing; -}; - export const _clearSessionCookie = () => { document.cookie = "authelia_session=; expires=Thu, 01 Jan 1970 00:00:00 GMT; SameSite=None; Secure"; }; -- cgit v1.2.3