aboutsummaryrefslogtreecommitdiff
path: root/apps/web/app/helpers/server/auth.ts
diff options
context:
space:
mode:
authorDhravya Shah <[email protected]>2024-06-18 17:58:46 -0500
committerDhravya Shah <[email protected]>2024-06-18 17:58:46 -0500
commitf4bb71e8f7e07bb2e919b7f222d5acb2905eb8f2 (patch)
tree7310dc521ef3559055bbe71f50c3861be2fa0503 /apps/web/app/helpers/server/auth.ts
parentdarkmode by default - so that the colors don't f up on lightmode devices (diff)
parentCreate Embeddings for Canvas (diff)
downloadsupermemory-default-darkmode.tar.xz
supermemory-default-darkmode.zip
Diffstat (limited to 'apps/web/app/helpers/server/auth.ts')
-rw-r--r--apps/web/app/helpers/server/auth.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/apps/web/app/helpers/server/auth.ts b/apps/web/app/helpers/server/auth.ts
deleted file mode 100644
index 73119d87..00000000
--- a/apps/web/app/helpers/server/auth.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import NextAuth, { NextAuthResult } 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 },
- signIn,
- signOut,
- auth,
-} = NextAuth({
- secret: process.env.BACKEND_SECURITY_KEY,
- callbacks: {
- session: ({ session, token, user }) => ({
- ...session,
- user: {
- ...session.user,
- id: user.id,
- },
- }),
- },
- adapter: DrizzleAdapter(db),
- providers: [
- Google({
- clientId: process.env.GOOGLE_CLIENT_ID,
- clientSecret: process.env.GOOGLE_CLIENT_SECRET,
- }),
- ],
-});