This commit is contained in:
parent
4002bdc2cf
commit
fa8ad10c00
|
|
@ -187,8 +187,14 @@ class PythonCliAuth {
|
||||||
verbose: true
|
verbose: true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (!response.success) {
|
||||||
return 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) {
|
} catch (error) {
|
||||||
console.error('Token verification failed:', error);
|
console.error('Token verification failed:', error);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue