Skip to content

main/login-prompt

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.

BrowserWindowController

The window of the page that made the request.

WebContents

The tab of the page. A tab in the background asks once it shows, not over the tab in front of it.

AuthenticationResponseDetails

The request.

AuthInfo

What the site asks for.

(username?, password?) => void

Electron’s answer.

OverlayOptions

What the overlays of all windows share.

IpcRouter

IPC router.

void