Skip to content

fix: dashboard auth blocked by bundleRouter JWT middleware#39

Merged
AquiGorka merged 1 commit intodevfrom
fix/dashboard-auth-route-ordering
Mar 17, 2026
Merged

fix: dashboard auth blocked by bundleRouter JWT middleware#39
AquiGorka merged 1 commit intodevfrom
fix/dashboard-auth-route-ordering

Conversation

@AquiGorka
Copy link

Summary

  • The bundleRouter's pathless .use(jwtMiddleware) intercepted all requests falling through to it, including the dashboard's public auth endpoints (/challenge, /verify), returning 401 before they could be handled
  • Moved dashboard routes before bundle routes in v1.routes.ts so they match first
  • Applied jwtMiddleware inline per protected route instead of via .use("/dashboard", ...) which also caught the auth endpoints

Test plan

  • Verified locally: dashboard challenge/verify endpoints return 200
  • Full E2E pass (deposit, send, withdraw, dashboard API checks)
  • CI E2E gate

Bumps to 0.4.1.

The bundleRouter's pathless .use(jwtMiddleware) intercepted all requests
falling through to it, including the dashboard's public auth endpoints.

- Move dashboard routes before bundle routes in v1.routes.ts
- Apply jwtMiddleware inline per-route instead of via .use() prefix

Bumps version to 0.4.1.
@AquiGorka AquiGorka merged commit 5d15fd7 into dev Mar 17, 2026
2 checks passed
@AquiGorka AquiGorka deleted the fix/dashboard-auth-route-ordering branch March 17, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant