fix(oauth): crash on startup when OAuth keys are missing (#92)
* fix(oauth): crash on startup when OAuth keys are missing
Instead of silently setting oauthClient to null and serving 503 on all
auth endpoints, throw a clear error during server initialization when
JWKS/private key files are missing or Valkey is unavailable. This
prevents deploying an API that looks healthy but cannot authenticate
users.
Test mode (NODE_ENV=test) still skips OAuth initialization.
Closes #92
* ci(deploy): add post-deploy health gate with OAuth verification
After deploying, poll /api/health/ready for up to 30s and verify the
OAuth endpoint returns a non-503 status. Fails the workflow if the API
doesn't become healthy or OAuth keys are missing.
* style: fix prettier formatting in metadata.ts
authored by