Align authentication mechanism between API and web client #193
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
API AuthGuard only accepts Bearer tokens, but web client sends cookies (credentials: "include") without attaching a bearer token. This causes 401 errors on all guarded routes.
Locations
Mismatch
Impact
Decision Required
Choose ONE auth mechanism:
Acceptance Criteria
Option A: Bearer Tokens (Recommended)
Option B: Session Cookies
Testing
References
External security review findings (2026-02-02)