ElectronWebContents.on('login') method
ElectronWebContents › on(‘login’)
Unofficial
Registers a listener for thelogin event.Signature:
on($event: "login", listener: ($event: ElectronEvent, authenticationResponseDetails: ElectronAuthenticationResponseDetails, authInfo: ElectronAuthInfo, callback: (username?: string | undefined, password?: string | undefined) => void) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "login" | |
| listener | ($event: ElectronEvent, authenticationResponseDetails: ElectronAuthenticationResponseDetails, authInfo: ElectronAuthInfo, callback: (username?: string | undefined, password?: string | undefined) => void) => void | Called when the login event is emitted. |
Returns: this — This web contents instance.