Plugin Development Starter codebase
Hi i am a newb developer ..but better-auth is a great inspiration developer like to learn and code
A Humble request if there is any starter code base to develop better-auth plugin with the test setup
It will be really helpfull to have something like that to start creating plugins
It will be really helpfull to have something like that to start creating plugins
4 Replies
I recommend reading the Better-Auth codebase where we have our plugin code. (https://github.com/better-auth/better-auth/tree/canary/packages/better-auth/src/plugins) Something like the username plugin can be a good start: https://github.com/better-auth/better-auth/tree/canary/packages/better-auth/src/plugins/username
GitHub
better-auth/packages/better-auth/src/plugins at canary · better-au...
The most comprehensive authentication framework for TypeScript - better-auth/better-auth
GitHub
better-auth/packages/better-auth/src/plugins/username at canary · ...
The most comprehensive authentication framework for TypeScript - better-auth/better-auth
thank you for your reply
i am creating an ecommerce plugin just following the organization plugin it helped me a lot
I think a starter repo for plugins can help a lot to start contributing .
I can start creating a starter repo ...
Please help me if i need to maintain any aspect to follow the better-auth structure ..
https://auth.oworthy.org/api/docs#tag/ecommerce
you can see the api docs here generated by the plugin
Having a glance over it, it looks good to me. Do you have anything more specific you wanted me to check out about the plugin?
let me finish and i will share you the whole codebase