Skip to content

LM-07.1Palletline

Palletline moved 186,000 users off a home-made auth stack in 9 days.

A freight platform with three apps, two languages on the backend and a Passport setup nobody wanted to touch. Nine days from the first commit to the last session issued by the old system.

Title
Field report: Palletline
Doc. no.
LM-07.1
Stage
Series B
Issued
Nov 2026
Sheet
2 of 4

1.0Specification

SpecificationLM-07.1
Industry
Freight logistics
Stage
Series B
Headquarters
Lisbon, PT
Engineers
34
Stack
Next.js, Go, Expo
Monthly active
186,000
Moved from
Passport (in-house)
Methods
Passkey, code, SSO
Plan
Business
Cut-over
9 days

Palletline · outcomes

Measured by the team

Lines of auth deleted
4,100Passport strategies, session store, reset flow
Auth pages since cut-over
0Down from 11 in the six months before
Sign-ins by passkey
61%Of dispatcher sign-ins, eight weeks after launch

Parts used

2.0Problem

The problem.

Palletline matches freight with carriers across Iberia and France. Shippers book in a web app, dispatchers plan routes in a second one, and 9,000 drivers confirm pickups in an Expo app on phones that are often shared between shifts. All three signed in through a Passport.js service written in 2021 by an engineer who has since left.

By 2026 the service was the most paged component they ran. Eleven pages in six months, nine of them in the session store, a Redis instance that grew until it fell over on Monday mornings. Password resets were a quarter of support tickets. And their largest shipper, a supermarket group, had asked for SAML twice.

The auth service was the only part of the system where every fix made the next one harder.

Ines Carvalho, staff engineer

The constraint was simple and strict: drivers could not be signed out mid-route, and no one could be asked to reset a password. A driver who cannot confirm a pickup holds up a lorry.

3.0Assembly

How they assembled it.

Ines ran the migration as the six-step checklist, one engineer and one week of her own time. The import took 16 minutes for 412,000 accounts, active and dormant, with their bcrypt hashes. Latch upgraded each hash to argon2id at its next sign-in, so the old format disappeared on its own over the following month.

For the parallel run, the trickle adapter accepted sessions from both systems. Passport sessions were honoured until they expired, while every new sign-in went through Latch. Drivers on long routes kept their old session for up to 72 hours and never noticed the switch.

  1. Day 1: import into a development instance

    412,000 rows, 38 duplicates found by the dry run, fixed in the source.

  2. Days 2 to 4: components in all three apps

    <SignIn /> in the two web apps, the Expo SDK in the driver app.

  3. Day 5: production import and the trickle adapter

    Both systems live, every new session issued by Latch.

  4. Day 9: the last Passport session expires

    The service is switched off; its Redis instance is deleted on day 39.

Each shipper became an organization, which turned the supermarket group's SAML request into a connection their IT team set up from a link. Dispatchers got passkeys, offered after their second sign-in. Drivers kept email codes, because a passkey on a shared phone belongs to the phone, not the driver.

  1. AppsLayer 1
    • Shipper web · Next.js
    • Dispatch · Next.js
    • Driver app · Expo
  2. LatchLayer 2
    • Passkeys
    • Email codes
    • SAML
    • 1,900 organizations
  3. Go servicesLayer 3
    • latch-go middleware
    • JWKS cached 24 h
  4. RetiredLayer 4
    • Passport service
    • Redis session store
  1. Three clients One <SignIn /> in each web app; the driver app uses the Expo SDK with codes only.

  2. One instance Each shipper is an organization; the supermarket group signs in through its own IdP.

  3. Verification Tokens are checked in each service against a cached public key. No call per request.

  4. Gone on day 39 The trickle adapter honoured old sessions for 9 days; the store was deleted 30 days later.

Fig. 3.1Palletline's sign-in, exploded. Hover a layer or a callout to see which is which.

4.0Results

What changed.

There has not been an auth page since cut-over in March. Password-reset tickets fell from 24% of support volume to 3%, almost all of them from drivers who changed phones. The pull request that deleted the Passport service removed 4,100 lines and was approved in eleven minutes.

24%

Six months before

11%

Month of cut-over

3%

Six months after

Fig. 4.1 — Support tickets about signing in, as a share of all tickets

Eight weeks after launch, 61% of dispatcher sign-ins use a passkey and take a median of 4 seconds. The supermarket group's IT team set up their SAML connection in 25 minutes and has 214 people signing in through it.

We deleted 4,100 lines of auth code and the on-call rota that came with them. The migration checklist was accurate to the minute, which I have never said about a vendor document.
Ines CarvalhoStaff engineer, Palletline

6.0Get started

Assemble what Palletline did.

The same SDKs, the same import tool and the same checklist. Start on the free plan; the report above began with one engineer and an afternoon.

npm install @latch/nextjs

Included on Free

Monthly active users
10,000
Passkeys, codes, links
Included
Social providers
3
Organizations
5 members each
Card required
No