Conversation
Greptile SummaryThis PR adds three new public methods to Checklist areas needing improvement:
Score: 48 / 100 Confidence Score: 4/5Not safe to merge — multiple P1 issues from prior rounds (error swallowing, wrong auth header, missing input validation) remain unresolved. Several P1 findings flagged in previous review cycles are still present in the current HEAD: deleteApiKeyById silently swallows all errors returning only { success: false }, the Authorization header for email/password credentials is set to just the email address instead of a valid scheme, keyId is never validated before being sent to the API, and validatePaginationParam passes NaN/Infinity through. These require fixes before the new methods can be considered correct. src/lib/auth.ts (deleteApiKeyById error handling and authorization logic, missing keyId validation) and src/lib/validators.ts (NaN/Infinity gap in validatePaginationParam) Important Files Changed
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Summary of Changes
src/lib/auth.ts: createKey, deleteApiKeyById, getAllApiKeys