advanced.generateId: false is ignored in 1.2.6 with drizzleAdapter
Hi everyone,
After updating to v1.2.6, I've encountered a problem where better-auth is generating IDs, which conflicts with my database that relies on UUIDs. The issue seems most likely related to the drizzleAdapter, as similar problems appeared with the passkey and emailOTP plugins.
I temporarily downgraded to v1.2.5 to avoid the error, which looks like this:
To reproduce:
Install [email protected] and use the following auth configuration (note that the issue is likely with drizzleAdapter): Any guidance or fixes would be greatly appreciated. Thanks,
Rémi
Install [email protected] and use the following auth configuration (note that the issue is likely with drizzleAdapter): Any guidance or fixes would be greatly appreciated. Thanks,
Rémi
Solution:Jump to solution
okay try disabling auto generated Ids by setting
advanced.database.generateId
to false
4 Replies
try upgrading
1.2.7-beta.1
and let me know
we'll publish the patch soonThe issue persists after updating
Thanks for the quick answer btw
Solution
okay try disabling auto generated Ids by setting
advanced.database.generateId
to false
Alright that solved it !
It also works on the 1.2.6