mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
The signed state cookie expired after 5 minutes while the verification row and the state payload it validates lived for 10, so callbacks in that window failed with state_security_mismatch. Derive the cookie Max-Age and the row TTL from the payload expiry and expose the window as account.stateExpiresIn (default 600s).