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(() => {});