`useNumberId` is set, but `id` is still a string?
Hey,
I'm using
useNumberId: true in my betterAuth config (with an SQLite database), but I'm still seeing that the user id is a string in my auth middleware. Did I miss something ? Thanks in advance :).
Solution:Jump to solution
In order for existing plugins and libraries that work around Better-auth to continue to function, the
id value has to remain a string.
Our adapter system will automatically convert the id from string to int and vice versa when interacting with DB....2 Replies
Solution
In order for existing plugins and libraries that work around Better-auth to continue to function, the
id value has to remain a string.
Our adapter system will automatically convert the id from string to int and vice versa when interacting with DB.ok so this change is only on the db side. Thanks for the answer :).