feat: setup better-auth
This commit is contained in:
6
apps/web/src/pages/api/auth/[...all].ts
Normal file
6
apps/web/src/pages/api/auth/[...all].ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { toNodeHandler } from "better-auth/node";
|
||||
|
||||
import { auth } from "@kan/auth";
|
||||
|
||||
export const config = { api: { bodyParser: false } };
|
||||
export default toNodeHandler(auth.handler);
|
||||
Reference in New Issue
Block a user