eCourt-note/app/api/auth/token
Suphonchai Phoonsawat 545c9d5703 add /api/auth short-path endpoints (token/session) + swagger group "auth"
- POST /api/auth/token = alias of /api/documents/token (docver access_token,
  both x-api-key and ticket entrances)
- POST /api/auth/session = alias of /api/note/auth/session (exchange e-Court
  link credential for note login token, 8h TTL)
- lib/openapi.ts: new "auth" tag + both paths + SessionExchangeRequest /
  SessionResponse schemas (session endpoint had never been documented)
- tests/lib/openapi.test.ts: guard all $refs resolve + auth paths exist

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-05 13:06:45 +07:00
..
route.ts add /api/auth short-path endpoints (token/session) + swagger group "auth" 2026-11-05 13:06:45 +07:00