OAuth session store: runBlocking on every request #20

Closed
opened 2026-06-18 00:02:10 +00:00 by starsetbyte · 0 comments
Owner

Problem

Both interceptors call sessionStore.load() with runBlocking — reads encrypted prefs twice per request.

Proposed fix

Single in-memory StateFlow loaded once, atomically updated, shared by all interceptors.

Source: Codex code review — auth #2

## Problem Both interceptors call sessionStore.load() with runBlocking — reads encrypted prefs twice per request. ## Proposed fix Single in-memory StateFlow loaded once, atomically updated, shared by all interceptors. Source: Codex code review — auth #2
Sign in to join this conversation.
No description provided.