summaryrefslogtreecommitdiff
path: root/src/Auth.js
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2024-11-18 05:51:04 -0500
committerLLLL Colonq <llll@colonq>2024-11-18 05:51:04 -0500
commit229bbf710df29809b7fe0068c45d2c47a1908598 (patch)
treecb0b756a5e4fec5dc7dbf3e1fb86742ded5794ab /src/Auth.js
parentee790dfbe80ef1b8f7540334308025fc618bb659 (diff)
Fix logout
Diffstat (limited to 'src/Auth.js')
-rw-r--r--src/Auth.js10
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";
};