v1.6.8
Automattic/harperv1.6.8Apr 23, 2026by better-release[bot]
AI Summary
A maintenance release addressing stability issues across OAuth providers, passkeys, and authentication hooks to improve reliability.
Key Highlights
- Fixed `mapProfileToUser` fallback for OAuth providers
- Fixed support for passing `id` through team hooks
- Fixed authorization flows missing state parameters
- Fixed TypeScript compatibility with `exactOptionalPropertyTypes`
Full Release Notes
## `better-auth` ### Bug Fixes - Fixed `mapProfileToUser` fallback for OAuth providers that may omit email from their profile response ([#9331](https://github.com/better-auth/better-auth/pull/9331)) - Fixed support for passing `id` through `beforeCreateTeam` and `beforeCreateInvitation` hooks ([#9253](https://github.com/better-auth/better-auth/pull/9253)) For detailed changes, see [`CHANGELOG`](https://github.com/better-auth/better-auth/blob/b289ac6c4bba10aa260d45a8627adc529e0d3b32/packages/better-auth/CHANGELOG.md) ## `@better-auth/oauth-provider` ### Bug Fixes - Fixed authorization flows that do not include a `state` parameter ([#9328](https://github.com/better-auth/better-auth/pull/9328)) For detailed changes, see [`CHANGELOG`](https://github.com/better-auth/better-auth/blob/b289ac6c4bba10aa260d45a8627adc529e0d3b32/packages/oauth-provider/CHANGELOG.md) ## `@better-auth/passkey` ### Bug Fixes - Fixed incompatibility with TypeScript's `exactOptionalPropertyTypes` compiler option ([#9270](https://github.com/better-auth/better-auth/pull/9270)) For detailed changes, see [`CHANGELOG`](https://github.com/better-auth/better-auth/blob/b289ac6c4bba10aa260d45a8627adc529e0d3b32/packages/passkey/CHANGELOG.md) ## Contributors Thanks to everyone who contributed to this release: @baptisteArno, @gustavovalverde, @ping-maxwell **Full changelog:** [`v1.6.7...v1.6.8`](https://github.com/better-auth/better-auth/compare/v1.6.7...v1.6.8)