aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/server/auth.ts
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-05-25 18:41:26 -0500
committerDhravya <[email protected]>2024-05-25 18:41:26 -0500
commit075f45986fd4d198292226e64afb71b3515576b4 (patch)
tree5c728356cd0310f1c1c012fd6618c72a836c314b /apps/web/src/server/auth.ts
parentadded social material (diff)
downloadsupermemory-075f45986fd4d198292226e64afb71b3515576b4.tar.xz
supermemory-075f45986fd4d198292226e64afb71b3515576b4.zip
refactored UI, with shared components and UI, better rules and million lint
Diffstat (limited to 'apps/web/src/server/auth.ts')
-rw-r--r--apps/web/src/server/auth.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/apps/web/src/server/auth.ts b/apps/web/src/server/auth.ts
deleted file mode 100644
index 95edcf35..00000000
--- a/apps/web/src/server/auth.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { env } from "@/env";
-import NextAuth from "next-auth";
-import Google from "next-auth/providers/google";
-import { DrizzleAdapter } from "@auth/drizzle-adapter";
-import { db } from "./db";
-
-export const {
- handlers: { GET, POST },
- auth,
-} = NextAuth({
- secret: env.NEXTAUTH_SECRET,
- trustHost: true,
- callbacks: {
- session: ({ session, token, user }) => ({
- ...session,
- user: {
- ...session.user,
- id: user.id,
- },
- }),
- },
- adapter: DrizzleAdapter(db),
- providers: [
- Google({
- clientId: env.GOOGLE_CLIENT_ID,
- clientSecret: env.GOOGLE_CLIENT_SECRET,
- }),
- ],
-});