Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.Network.AuthChallengeResponse
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { AuthChallengeResponse } = Protocol.Network;

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.