authenticate method

Future<SecurityResult<bool>> authenticate({
  1. required String reason,
  2. bool allowDeviceCredential = true,
  3. String? cancelLabel,
})

Shows the system prompt. Success(true) = authenticated, Success(false) = cancelled by the user, Failure = could not run.

Implementation

Future<SecurityResult<bool>> authenticate({
  required String reason,
  bool allowDeviceCredential = true,
  String? cancelLabel,
}) => _useCase.authenticate(
  reason: reason,
  allowDeviceCredential: allowDeviceCredential,
  cancelLabel: cancelLabel,
);