Skip to content

ElectronWebContents.on('login') method

ElectronWebContents › on(‘login’)

Unofficial

Registers a listener for the login event.

Signature:

on($event: "login", listener: ($event: ElectronEvent, authenticationResponseDetails: ElectronAuthenticationResponseDetails, authInfo: ElectronAuthInfo, callback: (username?: string | undefined, password?: string | undefined) => void) => void): this

Parameters:

ParameterTypeDescription
$event"login"
listener($event: ElectronEvent, authenticationResponseDetails: ElectronAuthenticationResponseDetails, authInfo: ElectronAuthInfo, callback: (username?: string | undefined, password?: string | undefined) => void) => voidCalled when the login event is emitted.

Returns: this — This web contents instance.