diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-12-20 11:11:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-20 11:11:46 +0000 |
| commit | e53f3ae528ca189f6d6b29baee0e04da147614f2 (patch) | |
| tree | b85b70cae0d384530c9478ee974c3d6d3dffc49b /apps/web/server | |
| parent | 92e352f3f6b5e3be29667aad29a88769f1483564 (diff) | |
| download | karakeep-e53f3ae528ca189f6d6b29baee0e04da147614f2.tar.zst | |
fix: add authentication checks to settings layout (#2274)
The settings layout was missing authentication checks, causing server
errors when unauthenticated users tried to access any settings page.
This fix adds:
- Session verification via getServerAuthSession()
- Redirect to "/" if no session exists
- Proper error handling with tryCatch wrapper
- Redirect to "/logout" for NOT_FOUND or UNAUTHORIZED errors
This brings the settings layout in line with the auth patterns used
in dashboard, admin, and reader layouts.
Fixes #2242
Co-authored-by: Claude <noreply@anthropic.com>
Diffstat (limited to 'apps/web/server')
0 files changed, 0 insertions, 0 deletions
