Skip to content

Commit

Permalink
Updating returned value from refresh token refresh method
Browse files Browse the repository at this point in the history
  • Loading branch information
waltersilvacruz committed Nov 10, 2021
1 parent b74b184 commit d40d2de
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Services/MeliApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ private function refreshAccessToken(): stdClass {
}
return $query;
} else {
$ret = new stdClass();
$ret->error = 'Offline-Access is not allowed.';
$ret->httpCode = null;
return $ret;
return (object) [
'response' => [
'message' => 'Offline-Access is not allowed.'
],
'httpCode' => 400
];
}
}

Expand Down

0 comments on commit d40d2de

Please sign in to comment.