auth in distributed system

i wanted to build a distributed system with a standalone auth server that is used by both my hono api and nextjs frontend, since im using a monorepo my plan is to create a shared auth package with auth server and client instances, then create a separate hono server that uses the auth server instance for handling requests, and then the same auth client and server instances can be used in my api and frontend wanted to know if this is a good mental map or there would be some better apporaches to this
4 Replies
Vlad
Vlad2mo ago
It's a good structure
Vlad
Vlad2mo ago
GitHub
GitHub - t3-oss/create-t3-turbo: Clean and simple starter repo usin...
Clean and simple starter repo using the T3 Stack along with Expo React Native - t3-oss/create-t3-turbo
astro
astroOP2mo ago
holyyy shitt when did this come out?
astro
astroOP2mo ago
GitHub
GitHub - 777advait/better-auth-monorepo
Contribute to 777advait/better-auth-monorepo development by creating an account on GitHub.

Did you find this page helpful?