Files
better-auth/packages
Maxwell 9714131eaf feat: Allow passing id in DB hook create (#3048)
* feat(database-hooks): Allow passing `id` in DB hook `create`

It's the same to using a custom `idGenerator`, except configurable by the database hook which would in theory provide more data.

A use-case is to generate the id based on user info in the user before DB hook.

Solves https://discord.com/channels/1288403910284935179/1379190465588367540/1384217435535835216

* chore: lint

* fix: tests failing
2025-06-20 08:25:42 -07:00
..
2025-06-12 21:09:34 -07:00
2025-06-12 21:09:34 -07:00