I got a new Pixel 7 last week and have started the tedious process of moving over to a new phone.
One of the more painful chores in moving from one phone to another is moving the Google Authenticator app and all of the two factor codes to the new phone.
My partner Nick told me about Yubikey Authenticator and I converted to it while moving phones since I was going to have to get all new codes anyway.
If you use a Yubikey for anything else, switching to Yubikey Authenticator is a breeze.
You download the Yubikey Authenticator app onto your phone, insert your Yubikey and start scanning QR codes (just like Google Authenticator).
Then any time you need a code, you simply insert your Yubikey into your phone and your codes appear in the app.
You can also put the Yubikey Authenticator app on a laptop or a desktop and get the codes that way which is a great backup solution in case you misplace or lose your phone.
And, when it is time to switch phones, you simply put the Yubikey Authenticator app on your new phone and insert the Yubikey and your codes are there.
Even with all of this goodness, I still keep physical copies of my backup codes in a safe. I am also considering setting up a second Yubikey for the two factor codes I use the most just in case I lose my main one.
When it comes to two factor codes, I think you have to have a plan B and a plan C.
If you use a Yubikey already, consider using the Yubikey Authenticator for your two factor codes.