Files
better-auth/packages/api-key/CHANGELOG.md
2026-06-09 22:32:25 -07:00

23 KiB

@better-auth/api-key

1.6.16

Patch Changes

  • #9974 cb1cbfa Thanks @Bekacru! - Resolve the session from the authoritative store when creating an API key, rather than the signed cookie-cache snapshot. /api-key/create now fetches the session with disableCookieCache: true, so a session that was revoked — including the session deletion performed when a user is banned — is no longer accepted within the cookie-cache window. Server-side calls that pass userId in the body are unaffected.

  • #9974 cb1cbfa Thanks @Bekacru! - Fix API key verification overwriting concurrent changes with stale state. Verification now persists only the fields it mutates (rate-limit counters, remaining count, refill and request timestamps) instead of writing back the entire record it read, so a concurrent disable, permission change, or expiry update can no longer be reverted by an in-flight verification. In secondary-storage mode, the record is re-read and merged before writing, so a key deleted mid-verification is no longer recreated.

  • Updated dependencies [cb1cbfa, cb1cbfa, cb1cbfa, cb1cbfa, cb1cbfa, cb1cbfa, 87e7aa5, cb1cbfa, cb1cbfa, cb1cbfa, 893cf6c, cb1cbfa, cb1cbfa, 5e49c56, cb1cbfa]:

    • better-auth@1.6.16
    • @better-auth/core@1.6.16

1.6.15

Patch Changes

1.6.14

Patch Changes

1.6.13

Patch Changes

1.6.12

Patch Changes

1.6.11

Patch Changes

1.6.10

Patch Changes

1.6.9

Patch Changes

  • Updated dependencies [815ecf6]:
    • @better-auth/core@1.6.9
    • better-auth@1.6.9

1.6.8

Patch Changes

  • Updated dependencies [856ab24, 9aa8e63]:
    • better-auth@1.6.8
    • @better-auth/core@1.6.8

1.6.7

Patch Changes

1.6.6

Patch Changes

1.6.5

Patch Changes

  • Updated dependencies [938dd80, 0538627]:
    • better-auth@1.6.5
    • @better-auth/core@1.6.5

1.6.4

Patch Changes

1.6.3

Patch Changes

1.6.2

Patch Changes

1.6.1

Patch Changes

1.6.0

Minor Changes

Patch Changes

1.6.0-beta.0

Minor Changes

  • 28b1291 Thanks @gustavovalverde! - Add optional version field to the plugin interface and expose version from all built-in plugins

Patch Changes