@yubico sells hardware devices that allow you to authenticate with a wide and growing number of services in a far more secure way than through codes texted to you that can be intercepted and re-routed or just malfunction and not arrive. They cost money, but $50 is a low price to put on safety and security in an increasingly digital world.
You can also use a #YubiKey to manage the (typically) 6-digit time-based codes for logins in a more secure and convenient way that doesn't require your phone.