Complete the method definition given below.
Some of the users in the application are yet to do some major security updates, for such user's ids third_party_auth_api
method will throw an error. Since we cannot update third_party_auth_api
as of now, we need to handle the same in our function. Therefore in such a case, return a json object as shown below:
The error received from third_party_auth_api
will have a message prop, which is to be added in the return object. Return the result. (No need to alter the return statement already given in the method)