You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] LocalStorageAdapter doesn't handle QuotaExceededError, silently failing to persist session data instead of surfacing a usable error #787
When browser storage quota is exceeded (common in private/incognito modes with strict limits), the storage adapter's setItem call throws, and the SDK's wrapper swallows it without any error propagation or fallback.
Component
storage
Steps to Reproduce
Fill browser storage close to its quota (or use a private-mode tab with strict limits).
Trigger an SDK operation that persists session state via the storage adapter.
Check whether an error is surfaced anywhere or whether it fails silently.
Expected Behavior
A QuotaExceededError should either propagate to the caller or trigger a documented fallback (e.g. in-memory-only session, with a warning).
Actual Behavior
The write silently fails; the caller has no idea session persistence isn't actually working until they notice sessions don't survive a refresh.
Environment
SDK version: 0.3.x
Node version: 20.x, 22.x
OS: macOS / Linux
Network: TESTNET
Code Example
// Not applicable — reproduced via API inspection, not a standalone snippet.
Error Output
N/A — no thrown error; behavior is incorrect but silent.
Difficulty
🟢 Easy
Additional Context
The storage adapter's write method is wrapped in a try/catch that logs nothing and returns normally on failure.
Activity