diff --git a/app/api/auth/[...better-auth]/route.ts b/app/api/auth/[...better-auth]/route.ts index c194fa0..a141d9e 100644 --- a/app/api/auth/[...better-auth]/route.ts +++ b/app/api/auth/[...better-auth]/route.ts @@ -1,5 +1,5 @@ import { auth } from '@/lib/auth'; -import { toNextJsHandler } from 'better-auth/nextjs'; +import { toNextJsHandler } from 'better-auth/next-js'; const { GET, POST } = toNextJsHandler(auth); diff --git a/package.json b/package.json index fe158c2..d96008f 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@tanstack/react-query": "^5.82.0", "ai": "^4.3.17", "autumn-js": "^0.0.96", - "better-auth": "^1.2.12", + "better-auth": "^1.3.4", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "date-fns": "^4.1.0",