ElectronApp.on('login') method
ElectronApp › on(‘login’)
Unofficial
Registers a listener for thelogin event.Emitted when
webContents wants to do basic auth.Signature:
on($event: "login", listener: ($event: ElectronEvent, webContents: ElectronWebContents, authenticationResponseDetails: ElectronAuthenticationResponseDetails, authInfo: ElectronAuthInfo, callback: (username?: string | undefined, password?: string | undefined) => void) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "login" | |
| listener | ($event: ElectronEvent, webContents: ElectronWebContents, authenticationResponseDetails: ElectronAuthenticationResponseDetails, authInfo: ElectronAuthInfo, callback: (username?: string | undefined, password?: string | undefined) => void) => void | The event handler. |
Returns: this — This ElectronApp instance.