mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 23:52:24 +00:00
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:
1 parent
9af22f2ab2
commit
c7f69fc212
7 files changed
+198
-44
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user