Skip to content

Commit c36600b

Browse files
Copilothotlong
andcommitted
docs: add auth fix entry to ROADMAP.md Bug Fixes section
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 48da281 commit c36600b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ROADMAP.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,6 +1283,17 @@ Plugin architecture refactoring to support true modular development, plugin isol
12831283

12841284
## 🐛 Bug Fixes
12851285

1286+
### Auth Registration and Login Unavailable in MSW/Server Modes (March 2026)
1287+
1288+
**Root Cause:** `createKernel.ts` (MSW mode) and `objectstack.config.ts` (Server mode) did not load `AuthPlugin`, so the kernel had no 'auth' service. All `/api/v1/auth/*` endpoints (sign-up, sign-in, get-session, sign-out) returned 404.
1289+
1290+
**Fix:**
1291+
1. Added `AuthPlugin` from `@objectstack/plugin-auth` to `objectstack.config.ts` for server mode (`pnpm dev:server`).
1292+
2. Created `authHandlers.ts` with in-memory mock implementations of better-auth endpoints for MSW mode (`pnpm dev`). Mock handlers are added to `customHandlers` in both `browser.ts` and `server.ts`.
1293+
3. Mock handlers support: sign-up/email, sign-in/email, get-session, sign-out, forgot-password, reset-password, update-user.
1294+
1295+
**Tests:** 11 new auth handler tests, all existing MSW (7) and auth (24) tests pass.
1296+
12861297
### Default Navigation Mode (Page) Clicks Have No Effect — Stale Closure (February 2026)
12871298

12881299
**Root Cause:** Three compounding issues created a stale closure chain in `ObjectView.tsx`:

0 commit comments

Comments
 (0)