Skip to content

Releases: benjaminpreiss/payload-better-auth

v3.2.0

16 Mar 15:56

Choose a tag to compare

3.2.0 (2026-03-16)

Bug Fixes

  • auth: run user sync in hooks immediately and fix auth methods path (b7fc11b)

Features

  • dev: run Better Auth as standalone Hono server (ab7dc21)

v3.1.1

12 Mar 16:28

Choose a tag to compare

3.1.1 (2026-03-12)

Bug Fixes

  • better-auth 1.5 and Payload 3.79 compatibility (a5cb32d)

v3.1.0

12 Jan 18:35

Choose a tag to compare

3.1.0 (2026-01-12)

Features

  • add custom logout button for Better Auth sign-out (eda43b4)

v3.0.0

12 Jan 17:30

Choose a tag to compare

3.0.0 (2026-01-12)

  • feat!: add Better Auth collections for auth method data (8db5b8c)

BREAKING CHANGES

  • Users collection now has betterAuthAccounts
    polymorphic relationship field. BA collections store auth
    method data separately.

v2.1.0

12 Jan 01:19

Choose a tag to compare

2.1.0 (2026-01-12)

Features

  • add Redis dev testing and dynamic session cookie name support (1c33a02)

v2.0.0

11 Jan 23:43

Choose a tag to compare

2.0.0 (2026-01-11)

  • feat!: redesign sync architecture with SecondaryStorage and EventBus (3fd85d9)

BREAKING CHANGES

  • Storage and EventBus are now required plugin options.
    Removed InMemorySyncAdapter, InMemoryEventBus, and LMDB implementations.

Architecture changes:

  • SecondaryStorage: Minimal KV interface (get/set/delete) for sessions,
    timestamps, and nonces. Implementations: SQLite (dev), Redis (prod)
  • EventBus: Timestamp-based coordination between plugins.
    Implementations: SQLite polling (dev), Redis Pub/Sub (prod)
  • Queue-based sync: All user operations go through reconcile queue
    with retry logic (no more direct sync or EventBus user events)
  • Direct session validation: Payload reads sessions from storage,
    no HTTP calls to Better Auth

Key improvements:

  • Instant session invalidation via shared storage
  • Horizontal scaling with Redis adapters
  • HMR-resilient with deduplicated logger
  • SQLite adapters throw in staging/production environments

New exports:

  • payload-better-auth/storage (SecondaryStorage, SQLite, Redis)
  • payload-better-auth/eventBus (EventBus, SQLite polling, Redis Pub/Sub)

Removed:

  • InMemorySyncAdapter, InMemoryEventBus, LmdbStorage
  • Unused: verifySignature, createSignature, getPayloadCached,
    createAttachExternalIdInPayload, UserEvent types
  • Empty directories: src/types/, src/collections/BetterAuthUsers/

Updated README and MANUAL with new architecture documentation.

v1.1.6

11 Jan 15:53

Choose a tag to compare

1.1.6 (2026-01-11)

Bug Fixes

  • add repository field for npm provenance verification (89e9b6a)

v1.1.4

11 Jan 15:48

Choose a tag to compare

1.1.4 (2026-01-11)

Bug Fixes

  • use Node 24 with npm 11 for better OIDC trusted publishing (1502c07)

v1.0.0

11 Jan 14:49

Choose a tag to compare

1.0.0 (2026-01-11)

Bug Fixes

  • adjust int test to reflect new auth methods endpoint (940e87d)
  • allow passing additional headers to payload plugin (b324ee7)
  • ci: disable husky hooks during semantic-release (b51ca61)
  • fix dev environment payload plugin options (3e07289)
  • fix magic link callback url (894e5ec)
  • fix passing serverProps to payload login components (c8bc3a6)
  • fix payload plugin passing options to auth component (e31f7f0)
  • improve package.json for install directly from github (f0c4493)
  • include src in files published to npm (b753b7c)
  • make dist package json export paths relative (e551e09)
  • remove better auth plugin init type error (4a75bcb)
  • rename payload plugin baseUrl option (63f5c32)
  • resolve Better Auth plugin integration issues (763369a)
  • setup testing script (46ca634)
  • switch from server url base detection to window.location.origin (daf4ea1)

Features

  • add admin user creation and improve auth components (a210e76)
  • add locale to user database (294866c)
  • add logging toggle to better-auth plugin (795676f)
  • add magicLink login (1ab9ff5)
  • add Nx caching for build, lint, and typecheck (ed52b09)
  • add pnpm workspace for npm package (951e70f)
  • add semantic-release for automated versioning (e3add4b)
  • add separate internal/external base URLs for server/client auth requests (3a09b54)
  • create basic better-auth sync solution (2f442bf)
  • fix payload plugin options (f9033c0)
  • further improve github publishing (8d16c6a)
  • improve github publishing (130b9bd)
  • init pnpm (032d770)
  • integrate Better Auth authentication system (9c9c3f8)
  • internalize db hooks and delete user in plugin (d087d79)
  • migrate to bundler moduleResolution for Turbopack compatibility (943a0b3)
  • move code to package (67ca385)
  • move migrations to dev/ and improve build config (c85f8d7)
  • setup payload and better-auth plugins (bf69c05)
  • setup payload with sqlite (04dfd1d)