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