aboutsummaryrefslogtreecommitdiffstats
path: root/packages/open-api/lib
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-12-20 11:11:46 +0000
committerGitHub <noreply@github.com>2025-12-20 11:11:46 +0000
commite53f3ae528ca189f6d6b29baee0e04da147614f2 (patch)
treeb85b70cae0d384530c9478ee974c3d6d3dffc49b /packages/open-api/lib
parent92e352f3f6b5e3be29667aad29a88769f1483564 (diff)
downloadkarakeep-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 'packages/open-api/lib')
0 files changed, 0 insertions, 0 deletions