Enhance session management and user authentication flow; implement day session tokens, improve cookie handling, and streamline date handling in planner
This commit is contained in:
@@ -255,7 +255,7 @@
|
||||
try {
|
||||
const res = await fetch('/api/notifications.php?action=get_events', { cache: 'no-store' });
|
||||
if (res.status === 401) {
|
||||
window.location.href = '/auth/login.php?expired=1';
|
||||
console.warn('Notificatiesessie niet geauthenticeerd.');
|
||||
return;
|
||||
}
|
||||
if (res.ok) {
|
||||
|
||||
Reference in New Issue
Block a user