This commit is contained in:
root 2025-07-12 19:13:47 +08:00
parent 4002bdc2cf
commit fa8ad10c00
1 changed files with 8 additions and 2 deletions

View File

@ -187,8 +187,14 @@ class PythonCliAuth {
verbose: true
}
});
return response.success;
if (!response.success) {
throw new Error(response.error || response.message || 'Command execution failed');
}
const data = response.data;
if (data && data.success) {
return data.success;
}
throw new Error(data?.message || 'Token verification failed');
} catch (error) {
console.error('Token verification failed:', error);
return false;