Pass credentials or API key in URL?

I am trying to use chrome directly to crate a snapshot. I keep getting stuck with the login screen. I have enabled [auth.basic] and tried:

./chrome.exe --headless --disable-gpu --screenshot=C:/tmp/screenshot.png http://admin:admin@localhost:3000/

Any other options I should try? Is there anyway to pass credentials/api key in the URL?

Thanks for any pointers

Using a big hammer, I got things working with puppeteer:

const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setRequestInterception(true);
page.on('request', (request) => {
  request.continue({headers: {
    'Authorization': 'Bearer eyJrIj...'
  }});
});
await page.goto('http://localhost...');