


            function generateAuthCommands(app) {
                let commands = {};

                if (!app.client_id) return commands; // Ensure there's a client_id

                // Generate AuthCode commands for each valid redirect URL
                if (app.auth_code && app.reply_addresses?.length) {
                    commands["AuthCode"] = app.reply_addresses
                        .filter(url => !url.startsWith("brk-")) // Exclude brk- URLs
                        .map(url => {
            