better auth error 404

no matter what we do in api/auth/sign-up and api/auth/login it is giving us better auth error 404
1 Reply
The Untraceable
The Untraceable2mo ago
Are you mounting it?
// Inside app/api/auth/[...all]/route.ts
import { auth } from "@/lib/auth"; // path to your auth file
import { toNextJsHandler } from "better-auth/next-js";

export const { POST, GET } = toNextJsHandler(auth);
// Inside app/api/auth/[...all]/route.ts
import { auth } from "@/lib/auth"; // path to your auth file
import { toNextJsHandler } from "better-auth/next-js";

export const { POST, GET } = toNextJsHandler(auth);

Did you find this page helpful?