string[] additionalFields now serialized by 2 times JSON.stringify - blocks upgrade
Thanks a lot for the hard work. Sharing this here as well since it’s currently blocking upgrade and I can’t benefit from the other fixes in newer releases.
There’s a regression where additionalFields defined as type: 'string[]' is now returned as a JSON string instead of a string[] on drizzle query because better-auth default transformation changed. That’s a breaking runtime change and affects existing production data handling.
Is this suited for github? Yes, this is suited for github To Reproduce Install better-auth@1.4.12. Configure additionalFields on the user with a string[] type: additionalFields: { notificationToken...