mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-04 09:58:49 +00:00
fix(login): lru-cache compatibility, improve session error handling (#12099)
# Which Problems Are Solved - Logo and heading overlap on login pages due to a -mb-4 negative margin on the logo container - The /login route returns a 500 when `listSessions` fails (e.g. stale session cookies), because loadSessions has no error handling. - The proxy logs `"fetch() returned undefined"` because `fetchIframeOrigins` returns undefined, which lru-cache's forceFetch treats as a fetch failure. # How the Problems Are Solved - Remove `-mb-4` from the logo container in DynamicTheme. - Wrap `loadSessions` in a try/catch — failures fall through as empty sessions instead of crashing. - Return `null` instead of `undefined` from `fetchIframeOrigins` so lru-cache caches it normally. --------- Co-authored-by: Livio Spring <[email protected]> Co-authored-by: conblem <[email protected]>
This commit is contained in:
co-authored by
Livio Spring
conblem
parent
13f8ba4215
commit
b1c8781516
Vendored
+7
@@ -96,6 +96,13 @@ declare namespace NodeJS {
|
||||
*/
|
||||
API_CACHE_CONFIG?: string;
|
||||
|
||||
/**
|
||||
* Optional: Disable the proxy's runtime CSP fetch from the ZITADEL API.
|
||||
* Defaults to true (enabled). Set to "false" to skip fetching iframe origins
|
||||
* and use a restrictive default CSP instead.
|
||||
*/
|
||||
CSP_FETCH_ENABLED?: string;
|
||||
|
||||
/**
|
||||
* Optional: Disable OpenTelemetry instrumentation.
|
||||
* Set to "true" to bypass OTEL initialization.
|
||||
|
||||
Reference in New Issue
Block a user