6 lines
237 B
TypeScript
Executable File
6 lines
237 B
TypeScript
Executable File
import { toNextJsHandler } from "better-auth/next-js";
|
|
import { auth } from "@/lib/auth"; // path to your auth file
|
|
import { createAuthHandlers } from "./handler";
|
|
|
|
export const { POST, GET } = createAuthHandlers(toNextJsHandler, auth);
|