main/login-prompt
Functions
Section titled “Functions”askForLogin()
Section titled “askForLogin()”askForLogin(
window,contents,details,info,callback,overlay,router):void
Defined in: app/src/main/login-prompt.ts:27
Asks for the user name and password that a site or a proxy wants, in the window’s overlay. Requests for the same host and realm share one prompt; closing it cancels them.
Parameters
Section titled “Parameters”window
Section titled “window”The window of the page that made the request.
contents
Section titled “contents”WebContents
The tab of the page. A tab in the background asks once it shows, not over the tab in front of it.
details
Section titled “details”AuthenticationResponseDetails
The request.
AuthInfo
What the site asks for.
callback
Section titled “callback”(username?, password?) => void
Electron’s answer.
overlay
Section titled “overlay”What the overlays of all windows share.
router
Section titled “router”IPC router.
Returns
Section titled “Returns”void