From 6d8f767e452019ebd0110149e54b16c2433b6e9b Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Sun, 19 Apr 2026 17:44:49 -0400 Subject: [PATCH] fix(idaa): add console logs to all IDAA IDB purge paths Three distinct log messages for each trigger: - No UUID / no session path - Novi auth failure (catch block) - Reset & Retry button Co-Authored-By: Claude Sonnet 4.6 --- src/routes/idaa/(idaa)/+layout.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes/idaa/(idaa)/+layout.svelte b/src/routes/idaa/(idaa)/+layout.svelte index 7f25572c..ad302c55 100644 --- a/src/routes/idaa/(idaa)/+layout.svelte +++ b/src/routes/idaa/(idaa)/+layout.svelte @@ -152,6 +152,7 @@ $effect(() => { // Purge any IDAA data that may have been cached from a previous session. $idaa_loc.novi_verified = false; novi_verifying = false; + console.log('IDAA Layout: No UUID / no session — purging IDAA IDB tables (posts, archives, events).'); db_posts.post.clear().catch(() => {}); db_posts.comment.clear().catch(() => {}); db_archives.archive.clear().catch(() => {}); @@ -332,6 +333,7 @@ async function verify_novi_uuid( $idaa_loc.novi_full_name = null; $idaa_loc.novi_verified = false; // Purge private IDAA data from IDB — do not leave sensitive data cached after auth failure. + console.log('IDAA Layout: Novi auth failed — purging IDAA IDB tables (posts, archives, events).'); db_posts.post.clear().catch(() => {}); db_posts.comment.clear().catch(() => {}); db_archives.archive.clear().catch(() => {}); @@ -371,6 +373,7 @@ async function verify_novi_uuid( onclick={() => { localStorage.removeItem('ae_loc'); localStorage.removeItem('ae_idaa_loc'); + console.log('IDAA Layout: Reset & Retry — purging IDAA IDB tables (posts, archives, events).'); db_posts.post.clear().catch(() => {}); db_posts.comment.clear().catch(() => {}); db_archives.archive.clear().catch(() => {});