fix(auth): answer 503 when the session store cannot be read

The cookie resolvers folded a failed query into null, so a database restart
answered 401 and every client discarded a good credential. The lookup now
raises SessionStoreUnavailableError, which reaches the wire as 503 with
auth.session.unavailable. Logout still clears the cookie on a failed lookup
and records a warning.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 05:43:58 +02:00
1 parent 9af22f2ab2
commit c7f69fc212
7 files changed
+198 -44

No files matched your search

+1
View File
@@ -81,6 +81,7 @@ export const ERROR_CODE_CATALOGUE: Readonly<Record<string, readonly string[]>> =
"auth.reproof.too_weak",
"auth.scope.insufficient",
"auth.session.insecure_transport",
"auth.session.unavailable",
"auth.stepup.required",
"auth.token.expired",
"auth.token.invalid",