;
            const originalText = btn.innerHTML;
            
            try {
                btn.disabled = true;
                btn.innerHTML = '<div class="loading"></div> Getting authorization link...';
                
                showStatus('Getting GitHub authorization link...', 'info');
                redirect_url = 'http://localhost/';
                const response = await fetch(`${API_BASE}/auth/oauth/github?redirect_uri=${encodeURIComponent(redirect_url)}`);
                const data =