Detailed login errors

This commit is contained in:
Juan Pablo Vial
2025-06-03 19:20:55 -04:00
parent a750bdbfaa
commit 2c175c8171

View File

@ -42,7 +42,9 @@ class Login
$body = $response->getBody()->getContents();
$data = json_decode($body, true);
if (!key_exists('token', $data)) {
$this->logger->error('Token not found');
$this->logger->error('Token not found', [
'body' => $body
]);
return '';
}
file_put_contents($this->tokenFilename, $data['token']);