social method
Implementation
Future<AuthyoResult> social(AuthyoSocialLogin login) async {
errorMessage = null;
infoMessage = null;
_setLoading(true);
final res = await _service.socialLogin(login);
if (_disposed) return res;
if (res.error != null) {
// A cancelled browser session (code 0) is not worth an error banner.
if (res.error!.code != 0) errorMessage = res.error!.message;
} else {
stopTimers();
verified = true;
completed = res;
}
_setLoading(false);
return res;
}