ion.href = data.authUrl;
                } else {
                    throw new Error(data.error?.message || 'Failed to get authorization link');
                }
            } catch (error) {
                showStatus(`Error: ${error.message}`, 'error');
                btn.disabled = false;
                btn.innerHTML = originalText;
            }
        }

        // Initiate GitHub login
        async function initiateGitHubLogin() {
            const btn = document.getElementById('githubLoginBtn')