I corrected some errors in the error handling.
Line 109 is an obvious misspelling.
Line 110 and 111, I received $body['errors'][0]['message']. I dont know if there are cases that it comes with the index description, but I guess it is more likely a misspelling as well.
The rest is to implement proper error handling in the refresh token generation, which was not handled adequately.
I corrected some errors in the error handling. Line 109 is an obvious misspelling. Line 110 and 111, I received $body['errors'][0]['message']. I dont know if there are cases that it comes with the index description, but I guess it is more likely a misspelling as well.
The rest is to implement proper error handling in the refresh token generation, which was not handled adequately.