v1.2.6 and v.1.2.7 throws errors when logging in
Upgrading better-auth to v1.2.6 (using D1Dialect / Cloudflare D1 via kysely-d1) against a
verification
table where expires_at
is a TIMESTAMP/text column throws:
On v1.2.7 it then errors with:
Reverting to ≤1.2.5 fixes it. Anyone run into this?
Also, unrelated but can we add a React Router V7 tag as Remix was replaced by that?4 Replies
Can I see your auth config rq?
@Ping
Hey, I'm not 100% sure this will fix your issue. But I've opened a PR which would make Kysely adapter choose "safer" options when it comes to whether a given DB type supports
Dates
and other fields.
https://github.com/better-auth/better-auth/pull/2478Same error unfortunately:
D1_TYPE_ERROR: Type 'object' not supported for value 'Tue Apr 29 2025 22:26:24 GMT+0800 (Malaysia Time)'