From 3bc2a3b21fcde8a7f6a87a4f68a90bd2fc9db36d Mon Sep 17 00:00:00 2001 From: Aayush Solanki Date: Sun, 27 Jul 2025 21:11:13 +0530 Subject: [PATCH] Fix: Correct import path for better-auth and update dependency version --- app/api/auth/[...better-auth]/route.ts | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",