diff options
| author | LLLL Colonq <llll@colonq> | 2024-11-18 05:51:04 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2024-11-18 05:51:04 -0500 |
| commit | 229bbf710df29809b7fe0068c45d2c47a1908598 (patch) | |
| tree | cb0b756a5e4fec5dc7dbf3e1fb86742ded5794ab /src/Auth.js | |
| parent | ee790dfbe80ef1b8f7540334308025fc618bb659 (diff) | |
Fix logout
Diffstat (limited to 'src/Auth.js')
| -rw-r--r-- | src/Auth.js | 10 |
1 files changed, 0 insertions, 10 deletions
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"; }; |
