Cool hack. That said: A security reminder to anyone who is in the target audience here: if you're clever enough to have TOTP 2FA enabled on your Google account, get some cheap USB security keys and enable Advanced Protection, which completely disables non-hardware 2FA. It requires two different tokens (and you should really get one for each computer you have/use, plus at least one offsite backup) because once enabled…
Can you recommend any cheap USB security keys? I've looked in the past and cost has been prohibitive.
https://www.cloudflare.com/products/zero-trust/phishing-resi...
Related thread: https://news.ycombinator.com/item?id=33020078