deregisterAuthenticator method
Implementation
Future<bool> deregisterAuthenticator(
BuildContext? context, String authenticatorId) async {
Onegini.instance.setEventContext(context);
try {
var success = await Onegini.instance.channel
.invokeMethod(Constants.deregisterAuthenticator, <String, String>{
'authenticatorId': authenticatorId,
});
return success ?? false;
} on TypeError catch (error) {
throw PlatformException(
code: Constants.wrapperTypeError.code.toString(),
message: Constants.wrapperTypeError.message,
stacktrace: error.stackTrace?.toString());
}
}