When I log in someplace where I haven't logged in before, Google prompts me for a code that I can get from an app on my phone.
If I don't have my phone, I have a printed list of emergency passwords I can use.