Files
dashcaddy/dashcaddy-api
Krystie cf8909740f
CI / Test & Lint (push) Has been cancelled
CI / Security audit (push) Has been cancelled
DC-044: fix legacy /api/auth/totp/check-session shim path (drop /auth)
The shim added in the previous commit rewrote /api/auth/totp/check-session
to /api/v1/auth/totp/check-session, but the canonical route is mounted at
/totp/check-session (no /auth prefix). The 404 returned to the auto-login
JS path was Route GET /v1/auth/totp/check-session — Express's /api/v1
mount stripped the /api/v1 prefix, leaving /auth/totp/check-session, which
doesn't match /totp/check-session.

Drop both /api and /auth (9 chars) so the legacy path maps to the
canonical /api/v1/totp/check-session.

Verified after deploy:
  GET /api/auth/totp/check-session  -> {"authenticated":true}
  GET /api/v1/totp/check-session    -> {"authenticated":true}
2026-07-08 21:33:07 -07:00
..
2026-03-05 02:26:12 -08:00
2026-03-05 02:26:12 -08:00