Essay · 28 August 2026

One login for a country

Ask someone in Sweden how they prove who they are online and they’ll give you one answer: BankID. Taxes, a doctor’s appointment, a grocery membership, a change-of-address form, a signature on a rental contract — one app, one identity, accepted everywhere without a second thought. It isn’t loved, exactly. Swedes complain about it the way people complain about weather. But nobody is confused about how to use it, and that fact alone puts it ahead of almost every comparable system in the world.

Spain, by contrast, is not short on digital identity. It’s oversupplied. There’s the DNI with an electronic chip that almost nobody I know has successfully read. There’s the NIE, for anyone who arrived from elsewhere. There’s the certificado digital, which lives inside one specific browser on one specific computer and quietly stops working the moment you change either. There’s Cl@ve, in several generations, each partially compatible with the last. Every one of these is technically valid somewhere. None of them is universally accepted anywhere. Which one you need depends entirely on which office you happen to be standing in front of — and standing in front of that office usually required a cita previa, an appointment slot so scarce that a small private industry now exists purely to grab them early and resell them, a fact that is, on its own, a fairly complete indictment of the system it’s parasitic on. Underneath all of it, paper persists: photocopies, a body that has to physically appear somewhere, a stamp that only the office issuing it recognizes as real. Move house and you’ll discover that your town hall, the tax authority, your regional health service, and your bank each consider themselves the one authoritative record of where you live.

The comparison isn’t a verdict on Spanish competence — Spain is not a country that struggles with technology. It’s a verdict on architecture. Sweden built a single, boring, general-purpose primitive, made it good enough that adoption was voluntary rather than mandated, and then let every institution — public, private, trivial, critical — build on top of it once. Spain built the equivalent interface a dozen separate times, once per institution, and none of the builders coordinated. The integration layer that should exist in software instead exists in the citizen. You are the API. Every form you refill, every document you re-photocopy, every office you physically visit to tell it something another office already knows — that’s the missing shared standard, and you’re doing its job for it, unpaid, one queue at a time.

You are the API.

This is what’s easy to miss if you only ever design software and never watch a government try to: the expensive part was never the credential. Building an ID system, cryptographically speaking, is a solved problem. The expensive part is the discipline to build the primitive exactly once and then have the political will to make every subsequent system defer to it instead of quietly building its own. That’s not a technology gap. It’s a coordination gap, and coordination gaps don’t show up in a system architecture diagram — they show up as a line of people holding photocopies.