Microsoft Authenticator needs your phone number and sends data back to Microsoft. If you're on Linux, macOS, or similar, there's a simpler way! oathtool does the same 2FA job, right from your terminal, and keeps your info private. Use oathtool command line for 2 step verification (2FA) https://www.cyberciti.biz/faq/use-oathtool-linux-command-line-for-2-step-verification-2fa/
Use oathtool Linux command line for 2 step verification (2FA)

Explains how to Generate two-factor authentication code from your Linux oathtool command line & encrypt totp key with gpg2 for privacy and security reasons.

nixCraft
@nixCraft I use KeepassXC which have this feature. Highly recommend!
@Shatur @nixCraft Same, keepass is great, specially when paired with Firefox extension, it can fill 2FA and passwords both.