Broken phone can’t recover gmail

I have broken my phone and I’m attempting to login into my gmail from a friend’s computer. However, it wants me to 2 step verify my gmail by using my phone to enter a code or use a passkey. Clearly this is a Catch-22. How do I get into my gmail on my friend’s laptop?