From ec87813a257e63f8a161e7bc04679e9fab6fbcf6 Mon Sep 17 00:00:00 2001
From: Mohamed Bassem <me@mbassem.com>
Date: Sun, 9 Nov 2025 12:21:54 +0000
Subject: feat(extension): Add custom header support for extension (#2111)

Fixes #1287
---
 apps/browser-extension/src/SignInPage.tsx | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

(limited to 'apps/browser-extension/src/SignInPage.tsx')

diff --git a/apps/browser-extension/src/SignInPage.tsx b/apps/browser-extension/src/SignInPage.tsx
index 1d849028..6cf8b35d 100644
--- a/apps/browser-extension/src/SignInPage.tsx
+++ b/apps/browser-extension/src/SignInPage.tsx
@@ -15,7 +15,7 @@ const enum LoginState {
 
 export default function SignInPage() {
   const navigate = useNavigate();
-  const { setSettings } = usePluginSettings();
+  const { settings, setSettings } = usePluginSettings();
 
   const {
     mutate: login,
@@ -156,6 +156,19 @@ export default function SignInPage() {
           Login with API key
         </Button>
       </form>
+
+      <div className="flex justify-center pt-2">
+        <button
+          type="button"
+          onClick={() => navigate("/customheaders")}
+          className="text-xs text-muted-foreground underline hover:text-foreground"
+        >
+          Configure Custom Headers
+          {settings.customHeaders &&
+            Object.keys(settings.customHeaders).length > 0 &&
+            ` (${Object.keys(settings.customHeaders).length})`}
+        </button>
+      </div>
     </div>
   );
 }
-- 
cgit v1.2.3-70-g09d2

