mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 04:19:20 +00:00
1.7 KiB
1.7 KiB
Contributing to Better Auth
Thanks for taking the time to improve Better Auth! This is a small document to get you started.
Please refer to the getting-started documentation specific to contributing for more information.
Security Issues
If you see any security issue we prefer you to disclose it via an email (security@better-auth.com). All reports will be promptly addressed, and you'll be credited accordingly.
Learn more about our security issues documentation.
A Few Guidelines to keep in mind
- Rather than extensive configurations, focus instead on providing opinionated, best-practice defaults.
- Try to make a consistent and predictable API across all supported frameworks
- Everything should be type-safe and embrace typescript magic when necessary.
Development
Read more about development in the getting-started documentation.
- Fork the repo
- clone your fork.
- install node.js (preferable latest LTS).
- run
cp -n ./docs/.env.example ./docs/.envto create a.envfile (if it doesn't exist) - run
pnpm iin your terminal to install dependencies. - create a branch.
- build the project using
pnpm build - run
pnpm -F docs dev(to run the docs section) - create a draft pull request. link the relevant issue by referring to it in the PR's description. Eg.closes #123 will link the PR to issue/pull request #123.
- implement your changes.
Testing
Read more about testing in the testing guide.