Platon
BABetter Auth
•Created by Platon on 4/21/2025 in #help
Anyway to access admin API from server?
If it helps at all, I'm attempting this in a monorepo setup where my services/better-auth are in a package, and I'm importing it into a nextjs page in an app
5 replies
BABetter Auth
•Created by jalol on 4/20/2025 in #help
Can I use better auth as authentication layer between hono backed and next js frontend?
Potentially merge the hono and better auth into one package, and have a separate package for your hono/better auth backend exports
But you get the gist
11 replies
BABetter Auth
•Created by jalol on 4/20/2025 in #help
Can I use better auth as authentication layer between hono backed and next js frontend?
Ideally, your setup would be:
- /packages/auth (better-auth export)
- /packages/hono (hono exports like routes, middleware, and anything else you’ll use in multiple apps)
- /apps/backend (serve hono app)
- /apps/frontend
11 replies
BABetter Auth
•Created by jalol on 4/20/2025 in #help
Can I use better auth as authentication layer between hono backed and next js frontend?
It goes against turborepo suggestions that your apps shouldn’t export anything other apps use, so technically your better-auth/hono stuff should live in a package within your turborepo setup, and you should have a standalone hono app within your /apps that imports that package
11 replies
BABetter Auth
•Created by jalol on 4/20/2025 in #help
Can I use better auth as authentication layer between hono backed and next js frontend?
As others said, this is exactly what I’m doing for my personal project:
turborepo monorepo setup
- hono backend (with better auth)
- NextJS frontend
- additionally, payload cms for admin frontend, using Hono/better-auth exposed endpoints for admin tools
11 replies
BABetter Auth
•Created by Platon on 4/20/2025 in #help
List of endpoints?
You guys have an answer to everything haha
6 replies