There are plenty of TOTP 2FA apps that work across different platforms, open source ones too, it's just a couple dozen LoC for the core functionality.