This commit is contained in:
Bereket Engida
2024-11-22 12:55:58 +03:00
parent b64c361b52
commit 6a387f1bbf
12 changed files with 953 additions and 235 deletions

View File

@@ -18,6 +18,7 @@ import { MysqlDialect } from "kysely";
import { createPool } from "mysql2/promise";
import { nextCookies } from "better-auth/next-js";
import { customSession } from "./auth/plugins/custom-session";
import { openAPI } from "@better-auth/open-api";
const from = process.env.BETTER_AUTH_EMAIL || "delivered@resend.dev";
const to = process.env.TEST_EMAIL || "";
@@ -148,6 +149,7 @@ export const auth = betterAuth({
},
}),
passkey(),
openAPI(),
bearer(),
admin(),
multiSession(),