Files
better-auth/demo/nextjs/app/api/auth/[...all]/route.ts
2024-09-26 08:14:28 +03:00

5 lines
143 B
TypeScript

import { auth } from "@/lib/auth";
import { toNextJsHandler } from "better-auth/next-js";
export const { GET, POST } = toNextJsHandler(auth);