summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/auth.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/lib/auth.ts')
-rw-r--r--apps/web/src/lib/auth.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/apps/web/src/lib/auth.ts b/apps/web/src/lib/auth.ts
deleted file mode 100644
index d0175c97..00000000
--- a/apps/web/src/lib/auth.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { betterAuth } from "better-auth";
-import { drizzleAdapter } from "better-auth/adapters/drizzle";
-import { db } from "./db";
-
-export const auth = betterAuth({
- database: drizzleAdapter(db, {
- provider: "pg",
- usePlural: true,
- }),
- secret: process.env.BETTER_AUTH_SECRET!,
- user: {
- deleteUser: {
- enabled: true,
- },
- },
- emailAndPassword: {
- enabled: true,
- },
- socialProviders: {
- google: {
- clientId: process.env.GOOGLE_CLIENT_ID as string,
- clientSecret: process.env.GOOGLE_CLIENT_SECRET as string,
- },
- },
- appName: "OpenCut",
- trustedOrigins: ["http://localhost:3000"],
-});
-
-export type Auth = typeof auth;