Skip to content

v0.26.6

Choose a tag to compare

@xgame92 xgame92 released this 05 Nov 10:56
6915cf1

Sessions and invitations past their time now go by themselves. Updating a self-hosted copy needs no migration and no
new setting, and the protocol stays at version 25. (#205)

Fixed

  • What was past its time stayed. Better Auth removes a session or a verification only when something looks it up, so
    one nobody came back for stayed for good, with the address and browser it came from, and an invitation kept the address
    it was sent to. A daily Cron Trigger now deletes sessions, verifications, OAuth tokens, client assertions and
    invitations past their time, in batches. Nothing anyone can see changes. (#205)

Upgrading

Deploying creates the Cron Trigger, at 03:23 UTC, from wrangler.jsonc. If you keep your own copy of that file, add
"triggers": { "crons": ["23 3 * * *"] }, or the rows stay. It counts toward your account's limit of Cron Triggers. The
first run deletes everything already past its time.