Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface default.Fetch.AuthChallengeResponse
import { type default } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { AuthChallengeResponse } = default.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.