Skip to Content
Delmare Digital

Upgrading to 0.13

0.13 needs no code, config or data changes. It fixes sliding sessions through Payload and changes when payload.auth refreshes a session.

No code, config or data changes are needed. 0.13.0 is not breaking, despite the minor bump.

What changed

  • Sliding sessions work through Payload. betterAuthStrategy now forwards Better Auth's refreshed Set-Cookie. Before, anyone using only Payload, the admin included, was logged out after expiresIn regardless of activity. See Sliding sessions.
  • payload.auth({ headers }) no longer extends the session unless you pass canSetHeaders: true and forward responseHeaders. A call that can't deliver a refreshed cookie is now a pure read.
  • 0.13.1 hides the admin login's email form when no email-based method is enabled, and adds acknowledgeRoleGuardDisabled.
  • 0.13.2 adds the optional roleField setting.
Edit this page on GitHub

On this page