docs: with the recent version of prisma, we can directly use a shared client code(#2590)

This commit is contained in:
Ahliman HUSEYNOV
2025-05-09 14:19:45 -07:00
committed by GitHub
parent 58fb373ad2
commit 7b2c498a86
+2 -1
View File
@@ -133,7 +133,8 @@ If you prefer to use an ORM or if your database is not supported by Kysely, you
```ts title="auth.ts"
import { betterAuth } from "better-auth";
import { prismaAdapter } from "better-auth/adapters/prisma";
import { PrismaClient } from "@prisma/client";
// If your Prisma file is located elsewhere, you can change the path
import { PrismaClient } from "@/generated/prisma";
const prisma = new PrismaClient();
export const auth = betterAuth({