Can better-auth client be used from backend?
Hi. Can the better-auth client be used from a backend so that better-auth can replace existing auth functionality with minimal frontend changes, or does the client have to be called from the frontend?
1 Reply
While you can use the client from the backend (by importing from
better-auth/client
) we highly recommend calling our auth endpoints using the authClient from the front-end.
You can read more here:
https://better-auth.com/docs/concepts/clientClient | Better Auth
Better Auth client library for authentication.