Background
C07/#350 improved API-key session defaults. OIDC residual was not filed then.
Problem
src/lib/oidcStorage.ts persists access (and optional refresh) tokens in localStorage. XSS or shared-browser access can steal IdP session material — higher impact than API keys alone.
Proposed solution
- Default access token to memory or
sessionStorage with short TTL
- Avoid persisting refresh tokens in JS storage; prefer BFF / HttpOnly cookie where feasible
- Mirror Ops UX “session vs remember” from API-key flow
Acceptance criteria
Priority
P1 / High
Complexity
Large
Evidence
src/lib/oidcStorage.ts (setStoredOidcTokens)
Background
C07/#350 improved API-key session defaults. OIDC residual was not filed then.
Problem
src/lib/oidcStorage.tspersists access (and optional refresh) tokens in localStorage. XSS or shared-browser access can steal IdP session material — higher impact than API keys alone.Proposed solution
sessionStoragewith short TTLAcceptance criteria
localStoragePriority
P1 / High
Complexity
Large
Evidence
src/lib/oidcStorage.ts(setStoredOidcTokens)