mirror of
https://github.com/better-auth/better-auth.git
synced 2026-10-19 11:24:57 -05:00
docs: with the recent version of prisma, we can directly use a shared client code(#2590)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user