onAbort method

  1. @override
Future<void> onAbort(
  1. AuthenticatorContext context, {
  2. String? reason,
})
override

Best-effort cleanup hook when a handshake is abandoned before completion.

Implementation

@override
Future<void> onAbort(AuthenticatorContext context, {String? reason}) async {
  final pending = _pending;
  _pending = null;
  if (pending == null) {
    return;
  }
  await _notifyAbort(context, pending, reason: reason);
}