I've found there are a lot of messy code as a residue after Resty library, which was used in your project. I've updated both AuthyResponse and AuthyUser classes in favor of guzzle HTTP library.
Changes:
added ResponseInterface type to AuthyResponse and AuthyUser constructor
removed an old $raw_response property (related to Resty)
updated all methods due to get data from an object which implements ResponseInterface
I've found there are a lot of messy code as a residue after Resty library, which was used in your project. I've updated both AuthyResponse and AuthyUser classes in favor of guzzle HTTP library.
Changes:
Tests: