Skip to content

fix(07): skip auth+setup paths in /api/* catch-all#46

Merged
finedesignz merged 1 commit into
mainfrom
hotfix/auth-public-paths
May 26, 2026
Merged

fix(07): skip auth+setup paths in /api/* catch-all#46
finedesignz merged 1 commit into
mainfrom
hotfix/auth-public-paths

Conversation

@finedesignz
Copy link
Copy Markdown
Owner

Hotfix for Phase 07 regression: prod /api/auth/login/request-link returns 401 because the JWT catch-all wasn't skipping /api/auth/* or /api/setup. Blocks magic-link login. One-line fix to the skip list in hub/src/index.ts (mirrored to license-gate middleware right below).

Regression introduced by Phase 07 merge: /api/auth/* and /api/setup were
mounted before the JWT catch-all but the catch-all's skip list never listed
them. Result: prod auth was returning 401 Unauthorized on
/api/auth/login/request-link, /api/auth/me, /api/auth/login/callback —
breaking every magic-link login attempt. Same fix applied to the
license-gate middleware that immediately follows authMiddleware.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@finedesignz finedesignz merged commit 14ddcb5 into main May 26, 2026
1 check passed
@finedesignz finedesignz deleted the hotfix/auth-public-paths branch May 26, 2026 14:33
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