a1d02051de5782670f757a9045a13fb7a4dcaea7
`bffUnauthorizedInterceptor` calls `AuthService.refresh()` on every 401 from a BFF route, and explicitly skips the `/me` endpoint to avoid an infinite loop (the bootstrap /me legitimately 401s when anonymous). The skip target was hardcoded to `/auth/me`, which matched portal-shell but missed portal-admin's `/admin/auth/me`. Symptom: opening portal-admin while anonymous fires the bootstrap /me → 401 → interceptor sees the URL is NOT `/auth/me` → calls refresh() → fires another /me → 401 → loop. Hits the 120/min general rate limiter in seconds; the user lands on a `rate_limited` error instead of the "Sign in" panel. Fix: derive the skip URL from `AUTH_PATH_PREFIX` so it matches the surface the host is on (`/auth/me` for portal-shell, `/admin/auth/me` for portal-admin). The token is already provided by both apps via `app.config.ts`. Tests: +1 regression spec exercising the admin path. The new spec asserts that no follow-up /me is issued after the bootstrap 401 when the prefix is `/admin/auth`.
Documentation index
This is the entry point to all project documentation. It is maintained automatically: any addition, rename, or removal of a .md file under docs/ must be reflected here in the same change.
Conventions
- Documentation is written in English.
- One topic per file. Group related files into a folder when there are three or more.
- Cross-reference with relative links so they keep working in GitHub, IDEs, and exported sites.
- For architectural decisions, do not add them here — they belong in decisions/ as MADR 4.0.0 ADRs.
Sections
Daily development
- development.md — repo layout, prerequisites, initial setup, daily commands, observability dev-loop (Jaeger UI, log ↔ trace correlation), dependency updates (Renovate), conventional commit cycle. Day-to-day reference for working on the project.
Architecture
- architecture.md — cross-cutting Mermaid diagrams: C4 system context, C4 containers, Nx module boundaries, CI/CD pipeline. Single-decision diagrams (auth sequence, ERD, etc.) live inline in their ADR.
Onboarding & environment
Setup guides for new contributors:
- setup/01-wsl-terminal-setup.md — modern WSL terminal (Zsh + Powerlevel10k + CLI tools)
- setup/02-dev-web-stack.md — Node via nvm, pnpm via corepack, Docker
- setup/03-angular-nx-monorepo.md — Angular + Nx monorepo bootstrap
Operations & runbooks
Empty — to be populated when we deploy.
Security, performance, accessibility
Empty — placeholders to be filled with rationale docs alongside their corresponding ADRs.
Description
Languages
TypeScript
85.3%
JavaScript
5.4%
SCSS
4.3%
HTML
3.9%
Shell
0.8%
Other
0.3%