createAuthMiddleware context.returned
i want to check user role on createAuthMiddleware hook, but returned only return basic user field like id, name, email, emailVerified, image, create and update at. no role field, how to fix this
1 Reply
i try to do this https://github.com/better-auth/better-auth/discussions/2412
GitHub
Multiple client apps, one should only allow admins to sign in · be...
Hi guys, really liking better auth but wondering what is the best way to accomplish the following requirements: 2 separate client applications one is admin dashboard, should only allow users with a...