Files
better-auth/packages/test-utils
Gustavo Valverde da0886a1e8 fix(prisma-adapter): match unset fields for eq null on MongoDB
Prisma on MongoDB matches a `null` filter only against stored nulls.
Better Auth leaves optional fields out on create, so `eq null` lookups
missed those records, including guarded `update`/`incrementOne` calls
used by refresh-token rotation, device-code claiming, SCIM, and API keys.

Also make the memory adapter's `ne null` skip unset fields, and simplify
oauth-provider `findConsent` now that `eq null` is reliable.
2026-10-15 11:26:15 +01:00
..
2026-10-15 04:48:47 +01:00
2026-10-15 04:48:47 +01:00
…

Better Auth Test Utils

Testing utilities for Better Auth adapter development and integration testing.

Installation

npm install @better-auth/test-utils

Documentation

For full documentation, visit better-auth.com.

License

MIT