Platon
BABetter Auth
•Created by Platon on 4/24/2025 in #bug-reports
Session schema missing from open API spec generation
Also most operations don’t have an operation id
3 replies
BABetter Auth
•Created by Platon on 4/24/2025 in #bug-reports
Session schema missing from open API spec generation
Also, "/auth/reset-password/{token}" is missing token in parameters declaration
3 replies
BABetter Auth
•Created by Platon on 4/21/2025 in #help
Anyway to access admin API from server?
ah so i didn't realise auth.api requests were simply doing fetch requests, rather than using the functions themselves - thats what i was after
8 replies
BABetter Auth
•Created by Platon on 4/21/2025 in #help
Anyway to access admin API from server?
I have a separate dashboard where I want to handle admin related stuff, including managing users, and without some hacky-work I'd struggle to not let standard users login while letting admins go through fine?
8 replies
BABetter Auth
•Created by Platon on 4/21/2025 in #help
Anyway to access admin API from server?
I don't, I'm trying to do it server side in payload, which has its own session management system - regardless though, there must be a way to just invoke the functions that run behind the scenes?
For example, what if I wanted to do some auth-related stuff in a worker?
8 replies
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
8 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