I have already cracked down on MS Authenticator --- I wrote my own --- and it's not very difficult to do.
My simple work aound --- put the code in the clipboard. Use Ctrl-V to paste.
My authenticator app can also be configured to automatically launch a sign-in page.