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.
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... | ||
| }); |
There was a problem hiding this comment.
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