From 8516a39fcbea09ba86d277fb426dcdb3ed3deff1 Mon Sep 17 00:00:00 2001 From: overcuriousity Date: Thu, 7 Aug 2025 15:20:00 +0200 Subject: [PATCH] auth variable consolidation --- .env.example | 1 - src/layouts/BaseLayout.astro | 2 -- src/utils/auth.ts | 2 -- 3 files changed, 5 deletions(-) diff --git a/.env.example b/.env.example index 1814d9f..a50dd89 100644 --- a/.env.example +++ b/.env.example @@ -124,7 +124,6 @@ AI_MAX_PROMPT_TOKENS=2500 # ============================================================================ # Enable authentication for different features -AUTHENTICATION_NECESSARY=false AUTHENTICATION_NECESSARY_CONTRIBUTIONS=false AUTHENTICATION_NECESSARY_AI=false diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 18a9353..7a3ab79 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -248,8 +248,6 @@ const { title, description = 'ForensicPathways - A comprehensive directory of di await showIfAuthenticated('#ai-view-toggle', 'ai'); }; initAIButton(); - - console.log('[CONSOLIDATED] All utilities loaded and initialized'); }); diff --git a/src/utils/auth.ts b/src/utils/auth.ts index e11ca24..d2464be 100644 --- a/src/utils/auth.ts +++ b/src/utils/auth.ts @@ -260,8 +260,6 @@ function getAuthRequirement(context: AuthContextType): boolean { return process.env.AUTHENTICATION_NECESSARY_CONTRIBUTIONS !== 'false'; case 'ai': return process.env.AUTHENTICATION_NECESSARY_AI !== 'false'; - case 'general': - return process.env.AUTHENTICATION_NECESSARY !== 'false'; default: return true; }