Skip to main content
Module

x/puppeteer_plus/mod.ts>Protocol.Fetch.AuthChallengeResponse

Deno port of puppeteer base on latest TypeScript source.
Go to Latest
interface Protocol.Fetch.AuthChallengeResponse
import { type Protocol } from "https://deno.land/x/puppeteer_plus@0.14.0/mod.ts";
const { AuthChallengeResponse } = Protocol.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.