[GH-ISSUE #1290] EnableLogin localStorage session expiration #915

Open
opened 2026-05-07 00:28:43 +02:00 by BreizhHardware · 0 comments

Originally created by @tomroth04 on GitHub (Mar 11, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1290

🐞 Describe the bug
The web app stores the session token in localStorage, which Safari automatically clears after 7 days of inactivity. This causes users to be logged out unexpectedly, requiring frequent re-authentication.

💻 Components impacted
Web app

💡 Screenshots and/or logs
Not applicable.

🔮 Additional context
Using cookies (with appropriate expiration) instead of localStorage for session tokens (especially when the EnableLogin option is active) would prevent automatic session expiry issues in Safari.

Originally created by @tomroth04 on GitHub (Mar 11, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1290 🐞 **Describe the bug** The web app stores the session token in `localStorage`, which Safari automatically clears after 7 days of inactivity. This causes users to be logged out unexpectedly, requiring frequent re-authentication. 💻 **Components impacted** Web app 💡 **Screenshots and/or logs** _Not applicable._ 🔮 **Additional context** Using cookies (with appropriate expiration) instead of `localStorage` for session tokens (especially when the `EnableLogin` option is active) would prevent automatic session expiry issues in Safari.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#915
No description provided.