-
-
Notifications
You must be signed in to change notification settings - Fork 12
merge dev to main (better-auth README) #426
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
Conversation
* chore: add README for better-auth adapter * typo
|
Claude finished @ymc9's task —— View job PR Review: Better Auth Adapter READMETodo List
Review FeedbackThe README file provides a solid foundation for the Better Auth adapter documentation. Here's my detailed review: ✅ Strengths:
|
|
Warning Rate limit exceeded@ymc9 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 10 minutes and 19 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
✨ Finishing touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR merges the dev branch to main, adding a comprehensive README file for the @zenstackhq/better-auth adapter package. The documentation provides installation instructions, configuration examples, and schema generation guidance for users integrating better-auth with ZenStack ORM.
Key Changes:
- Added README.md with installation, configuration, and usage instructions for the better-auth adapter
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ```ts | ||
| import { zenstackAdapter } from '@zenstackhq/better-auth'; | ||
|
|
||
| // ZenStack ORM client | ||
| import { db } from './db'; | ||
|
|
||
| const auth = new BetterAuth({ | ||
| database: zenstackAdapter(db, { | ||
| provider: 'postgresql', // or 'sqlite' | ||
| }), | ||
| // other better-auth options... | ||
| }); |
Copilot
AI
Nov 19, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code example is missing the import statement for BetterAuth. Add the following import:
import { betterAuth } from 'better-auth';Additionally, based on the better-auth library conventions, the function is typically named betterAuth (lowercase), not BetterAuth (uppercase). The example should use:
const auth = betterAuth({
database: zenstackAdapter(db, {
provider: 'postgresql', // or 'sqlite'
}),
// other better-auth options...
});
chore: add README for better-auth adapter
typo