Base URL not working.

I pass the following:

export const authClient = createAuthClient({
  baseURL: "http://localhost:6600",
  basePath: "/auth",
});


But authClient.useSession() makes a request to the frontend instead of the backend.
Was this page helpful?
Base URL not working. - Better Auth