<application ... > ... </application> </manifest>

HAP (HomeKit Accessory Protocol) 5.1 refers to Apple’s protocol version used by HomeKit accessories to communicate securely with controllers (iPhones, HomePods, etc.). The “authorization code” concept is part of how an accessory and controller establish trust/ownership and authorize access to accessory functionality.