fix: session inference breaking on some plugins

This commit is contained in:
Bereket Engida
2024-10-01 08:14:59 +03:00
parent ee796b21ee
commit 6f0918dadf
10 changed files with 108 additions and 117 deletions

View File

@@ -1,13 +0,0 @@
import { betterAuth } from "better-auth";
import { prismaAdapter } from "better-auth/adapters/prisma";
import { twoFactor } from "better-auth/plugins";
export const auth = betterAuth({
database: prismaAdapter(
{},
{
provider: "mysql",
},
),
plugins: [twoFactor()],
});