v1.2.6, v.1.2.7, and v1.2.8 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?12 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)'
bump
This is as of v1.2.8
bump
@Ping any chance you could revisit this?Does it include a callstack?
I'll grab that for you. Which version would you like me to run? 1.2.6, 1.2.7, or 1.2.8?
Latest
Can you show me your code in auth,verify-otp.tsx?
I can invite you to the entire repo as well. I'm planning to open source it in the future anyways
Yeah that would be great, thanks