handleResponseBodyFail method
The error will be thrown when the token exchange fails.
Implementation
Exception handleResponseBodyFail(Map<String, dynamic> body) {
if (body.containsKey("error")) {
return SocialSignInException(
description:
"Unable to obtain token. Received: ${body["error_description"]}");
} else {
return SocialSignInException(description: "Unknown fail");
}
}