# Does switching to Google sign-in already mean two-step verification?

> Switching the console to Google sign-in is the right direction, but it only hands the job of proving who you are to Google. To be truly secure, you still need to check the Google account itself, the old password login, the console's own two-step verification, and backup codes. This post is my record of completing these for my Cloudflare, GitHub and Google accounts, with step-by-step instructions on where to click, and it ends with a prompt you can paste into an AI to check your setup.

Published 2026-11-22 · Updated 2026-11-22 · URL https://wizerdbache.com/en/notes/site-security-google-login-2fa/


A friend in a group chat changed the website console's username-and-password login to “Sign in with Google,” and said this also gave us two-step verification for free.

My answer: **the direction is right, and it is better than the old username and password, but “for free” only holds once you confirm a few things first.** This post records what I ran into while adding two-step verification to my own Cloudflare, GitHub and Google accounts, as a route for anyone who wants to make the same change.

## What signing in with Google actually does

“Sign in with Google” hands the job of **proving who you are** to Google. The console no longer checks a password itself; instead it trusts Google’s word that “this person signed in successfully.”

So from then on, the console’s security is effectively **the security of your Google account**:

- If the Google account has two-step verification on, signing in with Google is protected by that step, and the “for free” your friend mentioned holds (Google may not ask again every time when you are already signed in to Google or on a trusted device).
- If the Google account does not have it on, you have only swapped one password for another, with no extra layer.

## Four things to check after the change

| # | What to check | Why |
|---|---|---|
| 1 | **Turn on 2-Step Verification for the Google account itself**, and preferably add a passkey or a physical security key | This is the root of the whole chain. A passkey is unlocked with your device (face, fingerprint or screen lock), and Google says it resists phishing better than a password. SMS or one-time codes can be tricked out of you by a fake site that you type them into |
| 2 | **Check whether the old password login still works** | Switching to Google sign-in does not necessarily disable the old email and password. In my own Cloudflare account, after I set a password, both email + password and Google sign-in worked. The old password remains a side door: replace it with a long password used only here, and turn it off if the console offers an option to do so (I did not find one in Cloudflare) |
| 3 | **Turn on the console’s own two-step verification too** | For Cloudflare, the official documentation states that if the account has its own two-step verification, Cloudflare’s check is **added on top of** Google’s verification when you sign in with Google. It is not one or the other |
| 4 | **Print the backup codes or keep them offline** | If your phone or key is lost, backup codes are the only way for you to get back in. Do not keep them only on the same computer or in the same cloud account |

Doing item 1 makes your friend’s claim hold; only when all four are done do I think “relatively secure” is the right description. Security has no “done, it is safe” state; it only makes holes harder for people to find.

## My own case: my Cloudflare account was opened with Google

My Cloudflare account was originally created by signing in with Google. While shoring up the site’s security (see [the previous chapter](https://wizerdbache.com/en/notes/site-security-what-attackers-want/)), I found that **two-step verification on Cloudflare was not on at all.**

When I went to turn it on, I got stuck: after pressing “Add security key,” the page asked for a Cloudflare password. But this account was opened with Google, so I never had a Cloudflare password, and entering my Google password did not help.

Cloudflare’s official documentation describes this case: accounts registered with a social login such as Google start out with **no password**; to turn on two-step verification or create an API token, you must first set one. The way to do it is to log out, click “Forgot Password” on the login page, and set a password through the reset email sent to the account’s email address. After setting it, signing in with Google still works as before.

The easily overlooked point: **setting a password means opening one more entrance** (email + password). So after this step, two-step verification becomes even less optional.

In the end I set up three methods:

| Method | Description |
|---|---|
| Security key | Uses my computer’s Windows Hello (face or fingerprint) as the key, which resists phishing |
| Email verification code | Backup |
| Authenticator app | When I first added it, the 6-digit code was repeatedly rejected as invalid, so I skipped it and succeeded two days later on a retry. Authenticator codes are time-based, so if you get stuck, first make sure your phone’s time is set to sync automatically |

I also generated backup codes and kept them offline.

### Where do the email verification codes go?

While organizing this, I noticed something: Cloudflare’s email verification codes and password reset emails are both sent to the account’s email address, and that address is **Gmail, which is the same Google account**.

Drawn out, it looks like this:

- Sign in with Google → relies on the Google account
- Email verification code → sent to the Google account’s mailbox
- Password reset → also sent to the Google account’s mailbox

If the Google account is taken over, these three routes fail together. So **the Google account must be protected in the strongest way** (passkey or physical key); its level sets the ceiling for your other accounts. For my GitHub account (where the site’s source code lives), I applied the same standard and added anti-phishing protection as well.

## Beyond the console: deployment credentials on my computer

With the accounts protected, there is one thing that is often forgotten: **the sign-in credentials that deployment tools leave on the computer**.

I deploy the site with Cloudflare’s command-line tool, Wrangler. After I log in once, it keeps a credential on the computer, so I can update the site later without signing in again. The launcher trojan from the previous chapter stole things like API keys and sign-in state. This kind of credential is usually usable as soon as it is obtained: it does not need your password, and it does not go through two-step verification again.

My approach is to give this credential a **24-hour lifetime**: the deployment script records the time when it first sees a sign-in, and once more than 24 hours have passed, the next time the deployment script runs, it logs out automatically and asks for a new sign-in. It used to log out after every deployment; I changed it to 24 hours. My own judgment: signing in every time is so annoying that you start skipping the checks before deployment, and that is more dangerous.

If you also deploy from the command line (Wrangler, Firebase CLI, Vercel CLI and the like), consider this: is your sign-in credential still on your computer right now? How long has it been there?

## For anyone who wants to make the change: one route

1. First turn on two-step verification for the **Google account**, and add a passkey.
2. Switch the console to Google sign-in.
3. Check the **old password login**: if it still works, replace the password with a strong one, and turn it off if the console offers that option.
4. Turn on the console’s own two-step verification too (for a Cloudflare account opened with Google, first set a password through Forgot Password).
5. Generate backup codes and keep them offline.
6. For deployment tools on your computer: log out when you are done, or set an expiry as I did.
7. Finally, sign out, sign in once from an incognito window, and confirm that every check really appears.

The last step is the one most often skipped, but only an actual sign-in tells you the settings really took effect.

## Hands-on: where to click for each step

The button names below follow the wording of the official help pages as of November 2026. Labels may change after interface updates; if you cannot find one, search for the title of the official help page.

### 1. Google account (the root of everything; do it first)

**Turn on 2-Step Verification**

1. Open [Google Account](https://myaccount.google.com/), and click “Security & sign-in.”
2. Under “How you sign in to Google,” choose “Turn on 2-Step Verification” (if it is already on, this shows as “2-Step Verification”), and follow the screens to set up the second step.
3. When you are not signing in with a passkey, Google recommends “Google prompt” (tap “Yes” on your phone) as the second step, which resists SIM-swap fraud better than text codes.

**Add a passkey**

Google’s interface labels this feature “Passkeys.”

1. Go to Google’s [passkey settings page](https://myaccount.google.com/signinoptions/passkeys), and create one on this computer or phone.
2. **Create it only on a device that is yours alone.** Google says that once created, anyone who can unlock this device can get into your account.
3. Google says a newly created passkey may take up to 7 days before it can be used to sign in.
4. Once it works, Google skips the second step when you sign in with a passkey, because unlocking the device already proves it is you.

**Save backup codes**

1. In the same place, under “Security & sign-in” → “2-Step Verification,” click the “Continue” icon below “Backup codes,” then click “Get backup codes.”
2. You get 10 codes at a time, each usable only once; print them and keep them with important documents.
3. When you generate a new set, the old one is automatically invalidated.

### 2. Switch the console to Google sign-in

Each console keeps this setting in a different place; some are under “Account” or “Sign-in method” settings, where you may find an option like “Connect Google” or similar. After switching:

- Sign out and try “Sign in with Google” once.
- Try the **old email and password** again to see whether they still work. If they do, handle that old password as described in item 2 above.

**Cloudflare exception**: The official documentation says that if your Google email address is already registered with a Cloudflare account, you **cannot** currently connect Google sign-in to that account (the official docs say this is in progress). If you click “Sign in with Google” and that Google email has no Cloudflare account yet, it will **open a new, separate account**, and your existing site is not in it. So there is no need to rush to switch the old Cloudflare account to Google sign-in; just turn on the two-step verification in the next section.

### 3. Cloudflare’s own two-step verification

**First confirm you have a Cloudflare password** (only needed if the account was originally opened with Google)

1. Log out of Cloudflare.
2. On the login page, click “Forgot your password?”, enter the account’s email address, and click Send.
3. Check your mail and set a password using the link in it. If nothing arrives after more than 20 minutes, check your spam folder.

**Turn on two-step verification**

1. Sign in to Cloudflare, open the **My Profile** menu → **My Profile** → **Authentication**.
2. Start setup in the **Two-Factor Authentication** section.
3. **Security Key Authentication** → **Add** → enter your Cloudflare password → use the computer’s built-in authenticator (Windows Hello, Touch ID) or plug in a physical key → give it a name.
4. The first setup asks you to generate backup codes: choose **Download** or **Print** and store them.
5. Add a second method: **Mobile App Authentication** (scan the QR code with an authenticator app), or **Email Authentication** (click **Enable**). Cloudflare’s official advice is to turn on at least two methods, so you can still get in if you lose one.

### 4. Deployment tools on your computer (if you use Wrangler)

- Check whether you are currently signed in: `npx wrangler whoami`
- Log out after deploying: `npx wrangler logout`
- Sign in again only when you are about to deploy: `npx wrangler login`

### 5. Verification

Open an incognito window, sign in to Google and then to the console in turn, and confirm that each check really appears: Google’s second step or passkey (a newly created passkey may take up to 7 days before it works for sign-in), and the console’s own two-step verification. If a check does not appear, go back to that section and review it.

## Prompt: ask an AI to check your sign-in setup

Paste the text below into your AI assistant, and replace `＜＞` with your own situation. Do the account security settings yourself; do not let the AI operate them for you, and do not paste passwords or verification codes into the conversation.

```text
I want to check whether the sign-in for my website-related accounts is secure enough. My situation:
- Website console: <for example Cloudflare, Vercel, or a Shopify admin>
- Current sign-in method for the console: <password / Google sign-in / both>
- Whether the Google account has two-step verification: <yes, and which method / no / not sure>
- Whether I deploy from the command line on this computer: <tool name, or none>

Please:
1. First ask me what else you need to know (for example, which sign-in methods the console supports), and do not assume everything at once.
2. In the order “Google account → old password login → console’s own two-step verification → backup codes → deployment credentials on this computer,” list for each item which screen I should check and what counts as passing.
3. Mark any item you are unsure about, and tell me to check the official documentation or the screen; do not guess.
4. Give me a draft checklist first, and do not change any settings for me. After I have checked each item, I will report the results back to you.
```

## Sources

- [Cloudflare: Log in to Cloudflare (Social login)](https://developers.cloudflare.com/fundamentals/user-profiles/login/) (Official)
- [Cloudflare: Two-factor authentication](https://developers.cloudflare.com/fundamentals/user-profiles/2fa/) (Official)
- [Google Account Help: Sign in with passkeys](https://support.google.com/accounts/answer/13548313) (Official)
- [Google Account Help: Turn on 2-Step Verification](https://support.google.com/accounts/answer/185839) (Official)
- [Google Account Help: Sign in with backup codes](https://support.google.com/accounts/answer/1187538) (Official)
