GOV.UK One Login From Abroad: How to Get Security Codes

GOV.UK One Login only texts security codes to UK numbers, so a foreign mobile won't work. Here's what does work from abroad, how to set it up, and what to do if you're already locked out.

2Phon Team

9 min read

Smartphone with two round plug pins facing a British three-hole wall socket that it does not fit
On this page· 12 sections

Key takeaways

  • GOV.UK One Login sends codes by text only to UK phone numbers. A number registered in another country won't get them.
  • The fix is an authenticator app. It makes the code on your device, so no phone number is involved. A passkey is a good second way in.
  • Set both up before you leave. You have to be signed in to add them, and signing in may need the very code you can't get.
  • Locked out abroad? Use your back-up method, then try Problems with the code on the security code screen, then contact the One Login team.
  • HMRC's Government Gateway is a separate login with its own codes and its own rules.

To get a GOV.UK One Login security code abroad, use an authenticator app. One Login doesn't text codes to numbers registered outside the UK, and a UK number only helps if its SIM still gets texts where you are. If you can sign in today, add the app now, then a passkey.

This guide covers the two logins people mix up, One Login and HMRC's Government Gateway, and what to do if you're already stuck. It's about signing in, not about tax.

Our own app, 2Phon, gives you a second phone number on an iPhone, and it isn't the answer here. GOV.UK's own options are better for a government account. For ordinary app sign-ups, see how to receive verification codes safely.

Why doesn't the GOV.UK security code reach you abroad?

Because text codes go to UK numbers only. GOV.UK's page on getting a security code for One Login, last updated on July 28, 2026, says it directly: "You cannot get a security code by text message if your phone number is registered outside the UK."

The same page gives two ways out: an authenticator app or a UK mobile phone number. The rule and its details went up in three updates in February and March 2026, so older advice about entering a foreign mobile is out of date.

Two situations follow from that:

  • You set up a foreign number in the past. GOV.UK says you'll need to switch to an authenticator app or a UK mobile number the next time you sign in. If you can't get through that, go to the lockout steps below.
  • You have a UK number, but nothing arrives. Then the rule isn't the problem. GOV.UK names two possible causes: your phone has no reception, or the sender is blocked on your device. Abroad, a switched-off SIM or a plan without roaming does the same.

If a code arrives but doesn't work, check its age. One Login codes expire after 15 minutes, and only the newest one counts.

One Login or Government Gateway: which one do you use?

Look at what you type first. An email address means One Login, and a user ID means Government Gateway. HMRC uses both (One Login only for personal tax services), which is why the two get confused. Its sign-in guide tells existing users to keep using the details they already have.

GOV.UK One LoginGovernment Gateway (HMRC)
You sign in withEmail address and password, or a passkeyUser ID of up to 12 characters and a password
What the code is calledSecurity codeAccess code
Code by textYes, to a UK number onlyYes; HMRC's help page doesn't say which countries
Code by voice callNoYes
Authenticator appYesYes
PasskeyYesNot mentioned on HMRC's help page
Link to use when you're stuck"Problems with the code""You can get help"

If your Gateway code won't come, don't create a new One Login to replace it. HMRC says to stay with your Gateway user ID even if you have One Login details from another government service.

Which GOV.UK One Login options don't need a phone number?

Two: an authenticator app and a passkey. Set up the app first, because GOV.UK still treats a password and a code as the back-up when a passkey isn't available.

Authenticator app

An authenticator app creates the code on your own device, and you type it in the same way as a texted one. GOV.UK says any authenticator app will do, on a smartphone, a tablet or a computer. New to them? Here's how authenticator apps compare with SMS codes.

The weak point is the device. Lose the phone and the codes go with it, unless the app syncs or backs them up. Check that before you travel.

Passkey

A passkey signs you in with your face, your fingerprint or your device passcode, "without needing your password or a security code", as GOV.UK's passkey guide from July 28, 2026 puts it. On a phone you need an iPhone 8 or newer with iOS 16 or higher, or Android 10 or higher.

Once you add one, it becomes your main way to sign in. It's saved in your password manager, so a passkey made on your iPhone also works on your iPad. Don't add one on a device you share with other people, since anyone who can unlock it may be able to sign in.

Set up your codes before you leave the UK

Do it while your UK number still works. You may need one last text to get in. The steps below follow GOV.UK's guide to changing your sign in details, last updated on July 28, 2026, and the passkey guide above.

  1. Install an authenticator app

    Get one from your app store, on a device that's coming with you.

  2. Open your sign in details

    Sign in to your GOV.UK One Login, go to Security, then select Manage your sign in details.

  3. Switch your codes to the app

    Under How you get security codes to sign in, find Your default method. Select Use a different default method and follow the instructions.

  4. Add a back-up method

    One Login lets you keep a second method, either a UK phone number or an authenticator app. If you expect to keep your UK line, it can be the back-up instead of the only way in.

  5. Add a passkey

    On the same page, find the Set up a passkey row. You'll enter your password, then confirm with your face, fingerprint or passcode.

  6. Check your email, then do a test sign-in

    You sign in with your email address, and password resets start with a code sent there. Make sure you can open that inbox without a text to your UK number. Then sign out and sign in with the passkey. Do it again with the app: choose Sign in another way on the passkey screen.

If your email provider offers backup codes, save a set before the trip. Here's what backup codes are and where to keep them.

Already abroad and locked out of One Login?

Start with any method you set up earlier, then ask One Login whether you can change how you get codes. In order:

  1. Try your passkey. If you made one, it skips the code. On a computer that doesn't have it, you can scan a QR code with the phone that does. Bluetooth has to be on for both devices.
  2. Use your back-up method, if you added a second UK number or an authenticator app.
  3. Ask to change how you get codes. Enter your email and password. When you're asked for the security code, select Problems with the code, then Check if you can change how you get security codes.
  4. Contact the One Login team if the site says you can't.

Step 3 is GOV.UK's route for people who've lost access to their phone or changed their number, and it comes with conditions:

  • It only works if you've already proved your identity with GOV.UK One Login.
  • You'll have to prove it again in the GOV.UK ID Check app. GOV.UK's guide to that app asks for a phone with a working camera and photo ID, such as a UK passport, a UK photocard driving licence or a non-UK passport with a biometric chip. An expired passport won't do.
  • Changing your method removes the old default and back-up methods. Choose the authenticator app this time, then add a new back-up.

How to reach the One Login team from outside the UK

The One Login contact page lists webchat, a contact form and a separate phone number for callers outside the UK: +44 208 629 0008, Monday to Friday, 8am to 8pm UK time. Open the page before you call. It shows a reference code that you'll be asked for.

HMRC access codes for Government Gateway

With a Government Gateway user ID, you can get an access code by text message, voice call or authenticator app. That's the list on HMRC's page about problems signing in. It doesn't say whether texts or calls reach numbers outside the UK, so we won't guess. The authenticator app doesn't depend on a number.

To change how you get the code:

  1. Sign in with your Government Gateway user ID and password.
  2. When you're asked for an access code, select You can get help.
  3. Follow the steps. HMRC says you may need to confirm your identity.

Don't keep guessing at your sign-in details. Too many wrong tries lock the account for 2 hours, and HMRC says its helpdesk advisers can't unlock it. For other trouble, the same page links to HMRC's digital assistant, which can pass you to a webchat with an adviser if one is free.

If you use both logins, set up the authenticator app in each.

Can you still use your UK SIM abroad?

Usually, if the line is switched on, connected to a local network and allowed to roam. One Login's rule is about where the number is registered, and a UK number stays a UK number while you travel. Whether the text gets through depends on your network and plan.

A code by text doesn't need mobile data, so the line can stay on with Data Roaming off. Our guide to bank verification codes abroad has the iPhone settings and the questions to ask your carrier. If other texts arrive and the code doesn't, go through the fixes for missing verification codes.

If you've moved for good, look after the line: prepaid numbers can be switched off when they aren't used. giffgaff, for example, deactivates a SIM after six months without activity. See how to keep your home number abroad and how to keep a UK SIM or eSIM active.

Where a second number fits, and where it doesn't

For government accounts, use an authenticator app or a passkey, not a second number. That goes for ours too. You'll need these accounts for years, and an app number lasts only as long as the subscription behind it.

2Phon is for the ordinary side of life abroad: delivery, ride-hailing, marketplace and social apps that all want a phone number. It gives you a real second mobile number from dozens of countries on your iPhone, receives verification codes from those apps, and makes and takes international calls, which use minutes in the app. It doesn't send texts. The number is yours while your subscription is active and may be given to someone else after that.

Not sure you need one? Read what a second phone number is first.

The short version

GOV.UK One Login texts security codes to UK numbers only, so move to an authenticator app and add a passkey while you can still sign in. If you're locked out, try your back-up method, then "Problems with the code", then the One Login team. Government Gateway is a separate login, so change its access code method separately.

Frequently asked questions

Can I create a GOV.UK One Login without a UK phone number?

Yes. The first security code goes to your email address. After that you choose how to get codes at sign-in, and an authenticator app is one of the two options, so no phone number is needed for that step.

How long does a GOV.UK One Login security code last?

15 minutes. If you asked for more than one code, only enter the most recent one.

Do I need a security code to reset my GOV.UK One Login password?

Yes, two of them. GOV.UK emails you one code, then asks for a second one from a text message or your authenticator app. If your only second method is a number that doesn't work abroad, a password reset won't get you past it.

Will HMRC text an access code to a foreign mobile number?

HMRC's help page for Government Gateway doesn't say. It lists text message, voice call and authenticator app as the ways to get an access code. The authenticator app is the one that doesn't depend on a phone number.

Can I send texts from a 2Phon number?

No. 2Phon receives verification codes and ordinary incoming texts, and it makes and takes calls. It doesn't send SMS or MMS. For GOV.UK and HMRC accounts, use an authenticator app or a passkey rather than a second number.

Found this useful? Pass it on.

Written by

2Phon TeamProduct & Privacy

The people building 2Phon. We write about second phone numbers, online privacy, verification codes, and getting the most out of the app.