// Simple authentication for LangMem Documentation (function() { 'use strict'; // Check if user is already authenticated if (sessionStorage.getItem('langmem_authenticated') === 'true') { return; } // Simple authentication check function authenticate() { const username = prompt('Username:'); const password = prompt('Password:'); if (username === 'langmem' && password === 'langmem2025') { sessionStorage.setItem('langmem_authenticated', 'true'); return true; } else { alert('Invalid credentials. Access denied.'); window.location.href = 'about:blank'; return false; } } // Show authentication dialog if (!authenticate()) { // Block access if authentication fails document.addEventListener('DOMContentLoaded', function() { document.body.innerHTML = '
Authentication required.
'; }); } })();