Spaces:
Build error
Build error
Update src/app/page.tsx
Browse files- src/app/page.tsx +1 -1
src/app/page.tsx
CHANGED
|
@@ -113,7 +113,7 @@ function HomeContent() {
|
|
| 113 |
}, [currentSessionId, updateSessionMessages]);
|
| 114 |
|
| 115 |
const handleLogout = () => {
|
| 116 |
-
document.cookie = "auth_token=;
|
| 117 |
localStorage.removeItem('rag_kb_current_session_id');
|
| 118 |
window.location.href = "/login";
|
| 119 |
};
|
|
|
|
| 113 |
}, [currentSessionId, updateSessionMessages]);
|
| 114 |
|
| 115 |
const handleLogout = () => {
|
| 116 |
+
document.cookie = "auth_token=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT; SameSite=None; Secure";
|
| 117 |
localStorage.removeItem('rag_kb_current_session_id');
|
| 118 |
window.location.href = "/login";
|
| 119 |
};
|