From 2df8c8e7864977e7d69446b4bfa3ebdfac609c84 Mon Sep 17 00:00:00 2001 From: simos Date: Mon, 17 Nov 2025 14:20:10 +0100 Subject: [PATCH] fix:identify claude login status --- server/routes/cli-auth.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/routes/cli-auth.js b/server/routes/cli-auth.js index d380413..e88b0be 100644 --- a/server/routes/cli-auth.js +++ b/server/routes/cli-auth.js @@ -60,8 +60,9 @@ async function checkClaudeCredentials() { const content = await fs.readFile(credPath, 'utf8'); const creds = JSON.parse(content); - if (creds.accessToken) { - const isExpired = creds.expiresAt && Date.now() >= creds.expiresAt; + const oauth = creds.claudeAiOauth; + if (oauth && oauth.accessToken) { + const isExpired = oauth.expiresAt && Date.now() >= oauth.expiresAt; if (!isExpired) { return {