Skip to content

fix(scaffold): pin auth API v0.24.3 and templates v0.23.0 - #381

Merged
Bccorb merged 3 commits into
mainfrom
fix/templates-pin-v0-23-0
Dec 4, 2026
Merged

Bccorb merged 3 commits into
mainfrom
fix/templates-pin-v0-23-0

Conversation

@Bccorb

@Bccorb Bccorb commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #380

New projects scaffold auth API v0.24.3 and the starter templates v0.23.0.

Pin Before After
SEAMLESS_AUTH_API_VERSION v0.23.0 v0.24.3
SEAMLESS_AUTH_API_COMMIT afd4495c f05dc338f0f62a89e516e7dfb977b7e4bb5fdc2a
SEAMLESS_AUTH_API_IMAGE_DIGEST sha256:c32b2e84... sha256:95fb964f0430215f75310aa311950ba024e166bdb7dfb6b8673c6230d3d6c999
SEAMLESS_TEMPLATES_REF v0.22.1 v0.23.0
SEAMLESS_TEMPLATES_COMMIT 0c0618e4 a9945875b172aacbfbe17de724e8f1ba46edabec

The admin dashboard stays on v0.14.0, the current release.

Auth API v0.24.3

Brings the v0.24 security release to scaffolded stacks, and the OpenID Provider contract 4, so a scaffolded stack can run @seamless-auth/oidc-provider 0.5.x. Checked against what the CLI generates and calls:

  • The production refusal of short or published service tokens does not apply: the scaffold runs the API with NODE_ENV=development and generates its own SEAMLESS_SERVICE_TOKEN.

  • Magic links now need the code from the link fragment. Templates v0.23.0 read it (fix: read the magic link code from the fragment with the SDK's verify helpers seamless-templates#175).

  • /registration/register answers an address with a verified account as a new, unclaimed sign-up with no delivery block. The owner bootstrap is unaffected: seamless owner-code, the scaffold smoke, the CLI e2e and quickstart scripts, and the verify harness all register an address with no account yet. seamless owner-code for an owner whose account is already verified no longer gets a code from that route. fix(owner-code): sign in for the code when the owner is already verified #382 fixes that.

  • Step-up only accepts an authenticator app enrolled before the session signed in, and answers a newer one with 401 step_up_unavailable. The auth client read that as an expired token: it refreshed, retried, and then cleared the session with "Your session ... was rejected after refreshing it". isStepUpUnavailable in src/core/stepUp.ts now keeps that 401 away from the refresh path in src/core/authClient.ts, and the step-up says to sign in again. scripts/cli-commands-e2e.sh signs the owner in again after enrolling the app, which is what failed the CLI commands job on the first run of this PR.

Templates v0.23.0

Carries fells-code/seamless-templates#178 (closes fells-code/seamless-templates#177): the API starters move to @seamless-auth/express 0.27.0, @seamless-auth/fastify 0.18.0 and seamless-auth 0.7.0 for Go, Rust and Python, with the SameSite=Lax default and the Origin-to-Host check. Also since v0.22.1: security headers and a CSP on the web starters (fells-code/seamless-templates#172), the production stage as the default Docker target (fells-code/seamless-templates#173; the generated compose file already selects target: dev), Express and Fastify in production mode from npm start (fells-code/seamless-templates#171), and the example secrets refused everywhere (fells-code/seamless-templates#176). Every template's requires.cliMin is 0.24.0 or lower.

Checks run locally

  • npm run check:pins: every commit and image digest matches its tag.
  • npm run build: passes.
  • npm test: 89 files, 2126 tests passed (2 files, 28 tests skipped as before).
  • npm run coverage: thresholds pass.
  • scripts/scaffold-smoke.sh against the v0.24.3 image (sha256:95fb964f..., ports remapped locally): init, data and signing keys survive a recreate, and the owner registered as the browser would verifies with the owner-code code and holds admin:write. PASS.
  • seamless templates list downloads the registry at the pinned templates commit.
  • scripts/cli-commands-e2e.sh against the v0.24.3 image (ports remapped locally): PASS through step-up, org, migrate, users, members and sessions.
  • seamless verify was not run locally.

@Bccorb Bccorb changed the title fix(scaffold): pin templates v0.23.0 for the SameSite=Lax and Origin check adapters fix(scaffold): pin auth API v0.24.3 and templates v0.23.0 Dec 4, 2026
…r than the session

Auth API 0.24.0 answers a step-up with an authenticator app enrolled after
the session signed in with 401 step_up_unavailable. The auth client took
that for an expired token, refreshed, retried and then cleared the session.
It is now returned as is, and the step-up says to sign in again. The CLI
commands e2e signs the owner in again after enrolling the app.
@Bccorb
Bccorb merged commit cf7d1af into main Dec 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant