fix(auth): migrate from next-auth to better-auth (#1453)
This commit is contained in:
parent
453f5bb3e6
commit
b4f595a68c
40 changed files with 668 additions and 390 deletions
4
app/(chat)/api/auth/[...all]/route.ts
Normal file
4
app/(chat)/api/auth/[...all]/route.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import { toNextJsHandler } from "better-auth/next-js";
|
||||
import { auth } from "@/lib/auth";
|
||||
|
||||
export const { GET, POST } = toNextJsHandler(auth);
|
||||
Loading…
Add table
Add a link
Reference in a new issue