 await response.json();
                console.log('GitHub OAuth response:', data);

                if (data.authUrl) {
                    showStatus('Redirecting to GitHub authorization page...', 'info');
                    window.location.href = data.authUrl;
                } else {
                    throw new Error(data.error?.message || 'Failed to get authorization link');
                }
            } catch (error) {
                showStatus(`Error: ${error.message}`, 'error');
             