Engineering Challenges
The backend deliberately doesn't own authentication — it verifies JWTs issued by the frontend's Better Auth against a remote JWKS endpoint. Getting that cross-service trust working correctly (fetching and validating signed tokens issued by a separate app) was trickier than a typical single-app auth setup, and required the backend to always know the frontend's CLIENT_URL to locate the JWKS route.
