Extremely Popular
Go to Latest
interface puppeteer.Fetch.AuthChallengeResponse
import { type puppeteer } from "https://dotland.deno.dev/x/fresh@1.0.2/tests/deps.ts";
const { AuthChallengeResponse } = puppeteer.Fetch;

Response to an AuthChallenge.

Properties

response: ("Default" | "CancelAuth" | "ProvideCredentials")

The decision on what to do in response to the authorization challenge. Default means deferring to the default behavior of the net stack, which will likely either the Cancel authentication or display a popup dialog box. (AuthChallengeResponseResponse enum)

optional
username: string

The username to provide, possibly empty. Should only be set if response is ProvideCredentials.

optional
password: string

The password to provide, possibly empty. Should only be set if response is ProvideCredentials.