Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

Bump app to v2.0.151

Louis Beaumont67701d9ce384
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 961716a96..a733f7278 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.0.150"
+version = "2.0.151"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/screenpipe-js/ai-proxy/src/utils/auth.ts b/screenpipe-js/ai-proxy/src/utils/auth.ts
index e576fcf43..f59737475 100644
--- a/screenpipe-js/ai-proxy/src/utils/auth.ts
+++ b/screenpipe-js/ai-proxy/src/utils/auth.ts
@@ -191,15 +191,16 @@ async function validateScreenpipeToken(token: string): Promise<{ isValid: boolea
try {
const response = await fetch('https://screenpi.pe/api/user', {
- method: 'GET',
+ method: 'POST',
headers: {
- Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
},
+ body: JSON.stringify({ token }),
});
if (response.ok) {
- const userData = await response.json() as ScreenpipeUserData;
+ const data = await response.json() as { success?: boolean; user?: ScreenpipeUserData };
+ const userData = data.user;
console.log('Valid screenpipe user token, user:', userData?.email);
return {
isValid: true,