Skip to content

Commit 316204e

Browse files
committed
add auth api
1 parent 30ae230 commit 316204e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/api/auth/[...all]/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { auth } from "@/lib/auth";
2+
import { toNextJsHandler } from "better-auth/next-js";
3+
4+
export const { GET, POST } = toNextJsHandler(auth.handler);

0 commit comments

Comments
 (0)