Just curious, are you writing your own because the one in n8felton-recipes is not getting the latest version? I see that a pkg was supplied up to 4.3.4 but not anymore. Probably worth trying to work with @n8felton on that. I see that Yubico/yubioath-desktop redirects to Yubico/yubioath-flutter, no doubt Nate's recipe is from the days before that redirection.
https://macadmins.slack.com/archives/C056155B4/p1699279068830839?thread_ts=1699273864.373189&cid=C056155B4