5 lines
170 B
TypeScript
5 lines
170 B
TypeScript
import { auth } from "@/lib/auth"; // path to your auth file
|
|
import { toNextJsHandler } from "better-auth/next-js";
|
|
|
|
export const { POST, GET } = toNextJsHandler(auth);
|