mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-20 20:26:55 -05:00
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.
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