mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-25 06:22:19 +00:00
feat: add migration
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { betterAuth } from "better-auth";
|
||||
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
||||
import { admin } from "better-auth/plugins";
|
||||
import { db } from "../db";
|
||||
|
||||
export const auth = betterAuth({
|
||||
database: drizzleAdapter(db, {
|
||||
provider: "pg",
|
||||
}),
|
||||
emailAndPassword: {
|
||||
enabled: true,
|
||||
},
|
||||
plugins: [admin()],
|
||||
});
|
||||
Reference in New Issue
Block a user