Please help function checkLicense()

Authentication is not a built in feature of UXP so you’ll have to build it yourself: