Better Auth v1.8.0-beta.5
This prerelease changes authentication and session validation behavior across Better Auth, Electron, passkey, core, and OAuth provider packages. Key changes include requiring active stored sessions for sensitive operations when server-side session storage is enabled, stricter phone-number verification and password-reset rules, and updated handling of two-factor sign-in and passkey user verification.
Integrators using phone authentication, passkeys, two-factor authentication, Electron sign-in, OAuth linking, device-code approval, or server-side session storage may need to adjust configuration or callback handling.
Review the listed breaking changes and update affected hooks, phone OTP configuration, and session-dependent flows before upgrading.
- 01Update credential sign-in after-hooks to handle a null new session while two-factor verification is pending.
- 02If using phone sign-in with requireVerification, configure sendOTP.
- 03Ensure phone password resets are initiated only for phone numbers already verified on the account.
- 04If calling linkOAuthAccount directly, pass the session that started the link in OAuth state.
- 05Account for active stored-session requirements on the affected operations when server-side session storage is enabled.
# community_signal
How useful is this release to your stack?
Sign in with GitHub to cast your vote.
You’ll return to this release, then choose your vote.