auth variable consolidation
This commit is contained in:
		
							parent
							
								
									6f065a6e3b
								
							
						
					
					
						commit
						8516a39fcb
					
				@ -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
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -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');
 | 
			
		||||
  });
 | 
			
		||||
</script>
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
@ -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;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user