If you hit this
Any project scaffolded with npx create-objectstack between 13.0.0 (released 2026-07-09) and 15.1.0 shipped with broken authentication out of the box:
POST /api/v1/auth/sign-up/email → 500
POST /api/v1/auth/sign-in/email → 500
GET /api/v1/auth/get-session → 500
- Server log at startup:
Failed to register OIDC discovery routes … Cannot set properties of undefined (setting 'modelName')
- The Console login page appears to redirect-loop and registration fails
Fix — upgrade to 15.1.1
pnpm update "@objectstack/*" # or: npm update
# restart your dev server, then:
curl -s localhost:3000/api/v1/auth/get-session # expect 200
No config changes and no data migration needed (auth never worked on affected versions, so there is nothing to migrate). Projects scaffolded from today get 15.1.1 automatically.
Root cause
The framework workspace pinned the better-auth family to 1.7.0-rc.1 via pnpm overrides — required because GHSA-j8v8-g9cx-5qf4 (high) is only fixed in the 1.7.0 pre-release line. But pnpm overrides don't ship with published packages: the published @objectstack/plugin-auth still declared ^1.6.23, so fresh installs resolved a dependency combination that was never tested in CI and crashes during better-auth initialization.
Fixed by:
Verified end-to-end on a fresh npx create-objectstack@latest project: all auth endpoints return 200, zero errors at startup.
Sorry for the rough first-run experience if this hit you — this exact failure mode (publish-artifact smoke on a clean install) is now covered by CI.
If you hit this
Any project scaffolded with
npx create-objectstackbetween 13.0.0 (released 2026-07-09) and 15.1.0 shipped with broken authentication out of the box:POST /api/v1/auth/sign-up/email→ 500POST /api/v1/auth/sign-in/email→ 500GET /api/v1/auth/get-session→ 500Failed to register OIDC discovery routes … Cannot set properties of undefined (setting 'modelName')Fix — upgrade to 15.1.1
No config changes and no data migration needed (auth never worked on affected versions, so there is nothing to migrate). Projects scaffolded from today get 15.1.1 automatically.
Root cause
The framework workspace pinned the better-auth family to
1.7.0-rc.1via pnpm overrides — required because GHSA-j8v8-g9cx-5qf4 (high) is only fixed in the 1.7.0 pre-release line. But pnpm overrides don't ship with published packages: the published@objectstack/plugin-authstill declared^1.6.23, so fresh installs resolved a dependency combination that was never tested in CI and crashes during better-auth initialization.Fixed by:
check-override-consistencyCI gate so workspace overrides can never silently diverge from published declarations again.Verified end-to-end on a fresh
npx create-objectstack@latestproject: all auth endpoints return 200, zero errors at startup.Sorry for the rough first-run experience if this hit you — this exact failure mode (publish-artifact smoke on a clean install) is now covered by CI.