Skip to content

Commit 3289681

Browse files
committed
chore(audit): inline TODO for corrupt-blob purge
Minor finding from the 2026-05-21 second-pass: lib/auth-context.js:165 swallows a SecureStore JSON.parse failure without deleting the blob. Self-healing on next successful sign-in (setItemAsync overwrites), but the explicit-purge is cheap and the silent-swallow is the kind of thing that hides the next bug. Filed as inline TODO per audit policy — no separate PR.
1 parent 7d9a9a4 commit 3289681

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/auth-context.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ export function AuthProvider({ children }) {
164164
}
165165
} catch {
166166
// corrupt blob -> treat as signed out
167+
// TODO(2nd-pass-audit-2026-05-21): also call deleteItemAsync here
168+
// so a corrupt blob is purged rather than re-read on every mount.
169+
// Self-healing on next successful sign-in, but explicit is better.
167170
} finally {
168171
if (!cancelled) setLoading(false);
169172
}

0 commit comments

Comments
 (0)