onAuthRequired property

Stream<AuthRequiredEvent> get onAuthRequired

Issued when the domain is enabled with handleAuthRequests set to true. The request is paused until client responds with continueWithAuth.

Implementation

Stream<AuthRequiredEvent> get onAuthRequired => _client.onEvent
    .where((event) => event.name == 'Fetch.authRequired')
    .map((event) => AuthRequiredEvent.fromJson(event.parameters));