Files
better-auth/demo/nextjs/app/api/auth/[...all]/route.ts
Bereket Engida c945d1ba95 feat: demo
2024-09-16 13:53:41 +03:00

4 lines
142 B
TypeScript

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