chore: update better-auth dependencies to version 1.5.4 and refactor imports in auth-client and auth modules

This commit is contained in:
Mauricio Siu
2026-03-10 16:25:45 -06:00
parent 178f4fbdf7
commit 30428053e8
5 changed files with 393 additions and 260 deletions

View File

@@ -4,7 +4,8 @@ import * as bcrypt from "bcrypt";
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { APIError } from "better-auth/api";
import { admin, apiKey, organization, twoFactor } from "better-auth/plugins";
import { apiKey } from "@better-auth/api-key";
import { admin, organization, twoFactor } from "better-auth/plugins";
import { and, desc, eq } from "drizzle-orm";
import { BETTER_AUTH_SECRET, IS_CLOUD } from "../constants";
import { db } from "../db";