created simple auth system using betterauth

This commit is contained in:
averel10
2026-02-27 14:36:27 +01:00
parent 0285cf0956
commit cc1c904167
17 changed files with 1120 additions and 3 deletions

View File

@@ -0,0 +1,3 @@
import { auth } from "@/lib/auth"; // path to your auth file
import { toNextJsHandler } from "better-auth/next-js";
export const { POST, GET } = toNextJsHandler(auth);