Skip to content

fix(api-key): enforce v1.7.1 request contracts - #116

Draft
salasebas wants to merge 1 commit into
mainfrom
salasebas/api-key-request-contract-parity
Draft

fix(api-key): enforce v1.7.1 request contracts#116
salasebas wants to merge 1 commit into
mainfrom
salasebas/api-key-request-contract-parity

Conversation

@salasebas

Copy link
Copy Markdown
Owner

Summary

  • enforce Better Auth v1.7.1 API-key request schemas for create, verify, get, list, update, and delete
  • return upstream-compatible validation envelopes and explicit API-key registry error codes
  • preserve explicit null and false inputs through the shared API/endpoint seam
  • add focused malformed body/query, coercion, bounds, and complete HTTP error-body regressions

Scope

  • intentionally does not change verify endpoint serverOnly exposure; that confirmed finding is handled in a separate change

Testing

  • API-key package: 239 runs, 1117 assertions, 0 failures
  • request-contract regressions: 9 runs, 93 assertions, 0 failures
  • core endpoint tests: 13 runs, 93 assertions, 0 failures
  • core API tests: 19 runs, 105 assertions, 0 failures
  • scoped StandardRB and git diff check passed

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
better-auth Ignored Ignored Aug 20, 2026 9:31pm

@salasebas
salasebas force-pushed the salasebas/api-key-request-contract-parity branch from 0b6d6c4 to 9223f60 Compare August 20, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant