"") // Remove empty strings
                                : app.graph_api_permissions 
                                    ? [app.graph_api_permissions] // Convert single string to array
                                    : [], // Ensure empty values become an empty array

                            //Ensure AuthCode is always an array (even if it contains only one command)
                            auth_commands: app.auth_commands
                                ? Object.entries(app.auth_commands).re