feat: Optional proxy autentication (#2143)

This commit is contained in:
Pierluca Lino 2023-04-20 17:19:57 +02:00 • committed by GitHub
commit d8fd457914
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 3 deletions

View file

@ -2,7 +2,11 @@ const { Client, Location, List, Buttons, LocalAuth } = require('./index');
const client = new Client({
authStrategy: new LocalAuth(),
puppeteer: { headless: false }
// proxyAuthentication: { username: 'username', password: 'password' },
puppeteer: {
// args: ['--proxy-server=proxy-server-that-requires-authentication.example.com'],
headless: false
}
});
client.initialize();