-
Notifications
You must be signed in to change notification settings - Fork 91
fix(adapter): transforms output back to Date for better-auth compat #236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix(adapter): transforms output back to Date for better-auth compat #236
Conversation
…ility while this aligns with Convex stored _creationTime & numbers, this should still be transformed back to a Date instance or better-auth handles the formatting wrong fix get-convex#224
|
@tomsiwik is attempting to deploy a commit to the Convex Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughThe adapter's custom date field transformation has been updated to return Date objects instead of numeric timestamps. A corresponding test assertion validates this new behavior. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai but you seem to not understand that the other side |
|
Tip For best results, initiate chat on the files or code changes.
To clarify my understanding now: Data Flow:
The Fix:
This makes perfect sense now. The PR correctly transforms the numeric values stored in Convex back into Date objects that better-auth expects internally. The issue The fix is appropriate and addresses the root cause. Thank you for the patience in explaining this! ✏️ Learnings added
|
While this aligns with Convex stored _creationTime & numbers, this should still be transformed back to a Date instance or better-auth handles the formatting wrong (see the invitation bug or reported issue)
fixes #224
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.