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.
betterAuthStrategynow forwards Better Auth's refreshedSet-Cookie. Before, anyone using only Payload, the admin included, was logged out afterexpiresInregardless of activity. See Sliding sessions. payload.auth({ headers })no longer extends the session unless you passcanSetHeaders: trueand forwardresponseHeaders. 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
roleFieldsetting.

