From 8af4a3f9d55b72e7d7e59d7b8e04a78d196a3b10 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Fri, 19 Jun 2026 20:29:30 +0530 Subject: [PATCH] feat: update extension clients for PAT auth --- .../routes/pages/ApiKeyForm.tsx | 16 ++++++++-------- surfsense_obsidian/README.md | 7 +------ surfsense_obsidian/src/api-client.ts | 4 ++-- surfsense_obsidian/src/main.ts | 2 +- surfsense_obsidian/src/settings.ts | 2 +- 5 files changed, 13 insertions(+), 18 deletions(-) diff --git a/surfsense_browser_extension/routes/pages/ApiKeyForm.tsx b/surfsense_browser_extension/routes/pages/ApiKeyForm.tsx index 537eba3da..d045d8129 100644 --- a/surfsense_browser_extension/routes/pages/ApiKeyForm.tsx +++ b/surfsense_browser_extension/routes/pages/ApiKeyForm.tsx @@ -16,7 +16,7 @@ const ApiKeyForm = () => { const validateForm = () => { if (!apiKey) { - setError("API key is required"); + setError("Personal access token is required"); return false; } setError(""); @@ -39,11 +39,11 @@ const ApiKeyForm = () => { setLoading(false); if (response.ok) { - // Store the API key as the token + // Store the PAT as the bearer token for existing background handlers. await storage.set("token", apiKey); navigation("/"); } else { - setError("Invalid API key. Please check and try again."); + setError("Invalid personal access token. Please check and try again."); } } catch (error) { setLoading(false); @@ -67,15 +67,15 @@ const ApiKeyForm = () => {
- Your API key connects this extension to the SurfSense. + Your personal access token connects this extension to SurfSense.