Two-step sign-in, sometimes called two-factor authentication, asks for something extra after your password: usually a short code. It is one of the best protections an online account can have. It is also one of the most common ways travellers lock themselves out, because the code is often sent by text message to a phone number that does not work the same way abroad.
The fix is not to switch the protection off. It is to know which method each important account uses, and to add a second method that works without your home number before you go.
How the codes reach you
There are four common ways an account delivers or checks the second step:
- Text message. A code is sent to your phone number. It needs that SIM to be active and able to receive messages.
- Authenticator app. An app on your phone generates a new six-digit code every 30 seconds or so. It works from the phone's clock and a secret set up once, so it needs no signal and no data.
- Prompt on a trusted device. A sign-in on a new device triggers an approve-or-deny message on a phone or computer you are already signed in on. It usually needs that device to be online.
- Security key. A small physical key that you plug in or tap. It needs no signal at all.

Most accounts also offer backup codes: a list of one-time codes you can print or store, each usable once if every other method fails.
Why text codes fail abroad
A text code needs your home SIM switched on and roaming, or at least able to receive messages. Several ordinary travel decisions break that:
- You swap your home SIM for a local one, so the home number is in a drawer at home or in a wallet.
- You switch off roaming to avoid charges, and your carrier does not deliver texts in that mode.
- You are somewhere with no mobile signal, on a ship or in the mountains.
- Some services do not send codes to numbers roaming in certain countries, or the message simply arrives hours late.
Many phones can keep the home line active alongside a travel data plan, especially with an eSIM, which keeps text codes arriving while data runs on the cheaper plan. That setup is explained in eSIMs explained, and the cost side in roaming without the bill shock.
Set this up before you leave
The week before departure, go through the accounts that would hurt most to lose: your main email, your bank, your phone account, your cloud storage and any airline or travel account holding bookings.
- Sign in to each and open the security settings.
- Note which second step it uses.
- Where text messages are the only method, add an authenticator app or a security key if the account offers one.
- Generate fresh backup codes and store them somewhere that is not your phone.
It is also worth listing, on the same sheet as the backup codes, which accounts use which method. In a hurry abroad, after a lost phone or a dead battery, nobody remembers whether the airline account wanted a text message or an app code. A one-line note per account turns a stressful hour into a short task.
Do this at home, with time to spare. Adding a new method usually needs a code from the old one, and you want that to happen while the old one still works.
Banks are a special case
Banks are often the strictest. Many still rely on text messages or on their own app, and some will only send codes to a registered number. A few block sign-ins from abroad until you confirm you are travelling. Before a long trip, check in the bank's app or with the bank directly how it will confirm payments and sign-ins while you are away, and whether a travel notice is needed.
If the bank's app is your second step, make sure it is updated, that you know the app's own passcode, and that it is not tied to a phone you are leaving at home.
Where to keep the backup codes
Backup codes are only useful if you can reach them when your phone cannot help. Good places:
- A printed sheet in your travel documents wallet, kept separate from the phone.
- A password manager that you can open from another device, with its own recovery set up.
- A sealed note left with someone you trust at home who can read a code to you.
Treat them like a spare key: anyone holding them has a way into the account, so never keep them in a photo on the phone itself or in an unprotected note.
If you are locked out on the road
If a sign-in fails and the code will not arrive, stop and work through the options in order: an authenticator code, an approval on another signed-in device, a backup code, a security key. Only then fall back on the account's recovery process, which can take days and may ask for proof of identity.
Remember that a security key or an authenticator app is only as safe as the thing it lives on. Keep the key on a different ring from your room key, and make sure the phone holding the authenticator has a strong screen lock. Some authenticator apps can store their codes in an encrypted backup, which helps if the phone itself is lost; others cannot, and then the backup codes are your only route back in.
Avoid signing in to important accounts from shared computers in hotels or business centres; a lockout is inconvenient, but a stolen password is worse. Your own phone on a trusted connection, as described in staying safe on shared Wi-Fi, is the place to sort it out.
