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 <noreply@anthropic.com>
This commit is contained in:
@@ -152,6 +152,7 @@ $effect(() => {
|
|||||||
// Purge any IDAA data that may have been cached from a previous session.
|
// Purge any IDAA data that may have been cached from a previous session.
|
||||||
$idaa_loc.novi_verified = false;
|
$idaa_loc.novi_verified = false;
|
||||||
novi_verifying = 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.post.clear().catch(() => {});
|
||||||
db_posts.comment.clear().catch(() => {});
|
db_posts.comment.clear().catch(() => {});
|
||||||
db_archives.archive.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_full_name = null;
|
||||||
$idaa_loc.novi_verified = false;
|
$idaa_loc.novi_verified = false;
|
||||||
// Purge private IDAA data from IDB — do not leave sensitive data cached after auth failure.
|
// 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.post.clear().catch(() => {});
|
||||||
db_posts.comment.clear().catch(() => {});
|
db_posts.comment.clear().catch(() => {});
|
||||||
db_archives.archive.clear().catch(() => {});
|
db_archives.archive.clear().catch(() => {});
|
||||||
@@ -371,6 +373,7 @@ async function verify_novi_uuid(
|
|||||||
onclick={() => {
|
onclick={() => {
|
||||||
localStorage.removeItem('ae_loc');
|
localStorage.removeItem('ae_loc');
|
||||||
localStorage.removeItem('ae_idaa_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.post.clear().catch(() => {});
|
||||||
db_posts.comment.clear().catch(() => {});
|
db_posts.comment.clear().catch(() => {});
|
||||||
db_archives.archive.clear().catch(() => {});
|
db_archives.archive.clear().catch(() => {});
|
||||||
|
|||||||
Reference in New Issue
Block a user