Can i implement better-auth in the common backend? Or microservices?

Hello I already built an backend in expressJS and implemented only native email password authentication Also the main thing is that I added a kind of my own method to restrict a few api and screens in frontend using Module , Role, Permission Each module will have Permissions like ORDER_VIEW, ORDER_CREATE, ORDER_EXPORT_BUTTON etc Its combination of Module and Permission name. These permissions are joined with Roles. Users can be assigned with Role or specific permission. In frontend fetching all users permission and based on that Components will be rendered, in api also checking permissions using middleware. Currently I'm building an admin application in React. Next Planned to build User facing applications using NextJs (SEO Focused) also in future React Native mobile applications. The plan is to use the same backend server. Since I have not yet finished additional things which are like email verification, forgot password etc If i want to replace the complete authentication part with better-auth how can I do it? Is it possible to accommodate my plan?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?