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:

Parameter Type Description
event "login" The event name.
listener (event: ElectronEvent, authenticationResponseDetails: ElectronAuthenticationResponseDetails, authInfo: ElectronAuthInfo, callback: (username?: string | undefined, password?: string | undefined) => void) => void Called when the login event is emitted.

Returns: thisThis web contents instance.