From a919affca398129659e444b99580a2b4513729b9 Mon Sep 17 00:00:00 2001 From: Dhravya Date: Sun, 31 Mar 2024 23:22:35 -0700 Subject: [PATCH] fix: auth in extension --- apps/extension/.gitignore | 2 ++ apps/extension/package.json | 3 ++- apps/extension/src/App.tsx | 4 ++-- apps/extension/src/background.ts | 4 ++-- apps/extension/src/content.tsx | 7 ++++--- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/apps/extension/.gitignore b/apps/extension/.gitignore index a547bf36..97d5fffe 100644 --- a/apps/extension/.gitignore +++ b/apps/extension/.gitignore @@ -1,4 +1,6 @@ # Logs +*.zip + logs *.log npm-debug.log* diff --git a/apps/extension/package.json b/apps/extension/package.json index 95957e47..1543535f 100644 --- a/apps/extension/package.json +++ b/apps/extension/package.json @@ -7,7 +7,8 @@ "dev": "vite", "build": "tsc && vite build", "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", - "preview": "vite preview" + "preview": "vite preview", + "package": "zip -r extension.zip dist/" }, "dependencies": { "@radix-ui/react-tooltip": "^1.0.7", diff --git a/apps/extension/src/App.tsx b/apps/extension/src/App.tsx index dbba707e..a442cbb9 100644 --- a/apps/extension/src/App.tsx +++ b/apps/extension/src/App.tsx @@ -14,7 +14,7 @@ function App() { if (loginButton) { if (jwt) { - fetch('https://anycontext.dhr.wtf/api/me', { + fetch('https://supermemory.dhr.wtf/api/me', { headers: { Authorization: `Bearer ${jwt}`, }, @@ -43,7 +43,7 @@ function App() {