diff options
| author | Hyteq <DerpsDer.es@gmail.com> | 2025-06-24 11:29:15 +0300 |
|---|---|---|
| committer | Hyteq <DerpsDer.es@gmail.com> | 2025-06-24 11:29:15 +0300 |
| commit | d25e1eaa1d83617cecba822ac0fb24fe61bb3a08 (patch) | |
| tree | d85554ddc079efae46fbbc0350f397598eeab0cc /apps/web/src/lib | |
| parent | e2872005fb0963988730317a2fdb4dce39ee47b5 (diff) | |
| download | opencut-d25e1eaa1d83617cecba822ac0fb24fe61bb3a08.tar.gz | |
feat: migrated packages properly, using packages in web app
Diffstat (limited to 'apps/web/src/lib')
| -rw-r--r-- | apps/web/src/lib/auth-client.ts | 4 | ||||
| -rw-r--r-- | apps/web/src/lib/auth.ts | 29 |
2 files changed, 0 insertions, 33 deletions
diff --git a/apps/web/src/lib/auth-client.ts b/apps/web/src/lib/auth-client.ts deleted file mode 100644 index 1ab4e636..00000000 --- a/apps/web/src/lib/auth-client.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { createAuthClient } from "better-auth/react";
-export const { signIn, signUp, useSession } = createAuthClient({
- baseURL: process.env.NEXT_PUBLIC_BETTER_AUTH_URL!,
-});
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;
|
