Some of the users in the application are yet to do some major security updates, for such user's IdsthirdPartyAuthAPI
function will throw an error. Since we cannot update thirdPartyAuthAPI
as of now, we need to handle the same in our function. Therefore in such a case, return a json object.