stopAuthentication method

Future<bool> stopAuthentication()

Cancels any in-progress authentication, returning true if auth was cancelled successfully.

This API is not supported by all platforms. Returns false if there was some error, no authentication in progress, or the current platform lacks support.

Implementation

Future<bool> stopAuthentication() async {
  return LocalAuthPlatform.instance.stopAuthentication();
}