fix:identify claude login status

This commit is contained in:
simos
2025-11-17 14:20:10 +01:00
parent f91f9f702d
commit 2df8c8e786

View File

@@ -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 {