AuthenticationCallback typedef

AuthenticationCallback = FutureOr<void> Function(Request request, Response response, [Request? originalRequest])

Callback that is called when an authentication challenge is received based on the given request, response, and optionally the originalRequest.

Implementation

typedef AuthenticationCallback =
    FutureOr<void> Function(
      Request request,
      Response response, [
      Request? originalRequest,
    ]);