This commit is contained in:
parent
4002bdc2cf
commit
fa8ad10c00
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue