finishSocialAuthentication method
Implementation
@override
Future<AuthResult> finishSocialAuthentication(String code) async {
if (Platform.isIOS) {
throw PassageError(
code: PassageErrorCode.socialAuthError,
message: 'Not supported on iOS. Use authorizeIOSWith instead.');
}
try {
final jsonString = await methodChannel
.invokeMethod<String>('finishSocialAuthentication', {'code': code});
return AuthResult.fromJson(jsonString!);
} catch (e) {
throw PassageError.fromObject(object: e);
}
}