chromium/chrome/test/data/extensions/log_auth_required/log_auth_required.js

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

chrome.webRequest.onAuthRequired.addListener((_details, callback) => {
  console.log("onAuthRequired", _details.url);
  callback({});
}, { urls: ["<all_urls>"] }, ["asyncBlocking"]);