How do I use the Login Event in Electron Framework?
<p>I would like some help understanding how the <code>Event: 'login'</code> feature in Electron Framework works. Is it the low level implementation of the Password Autofill/Remember Password feature common in browsers? I would like to use this to autofill a password in a webpage's login flow e.g.</p>

<pre><code>const electron = require('electron')
const {app,BrowserWindow} = electron

app.on('ready', ()=&gt;{
    let win = new BrowserWindow({
        width:800,
        height:600
    })
//This is where I'm confused
app.on('login', (event, webContents, request, authInfo, callback) =&gt; {
  event.preventDefault();
  callback('my_username', 'my_password');
});
//How to implement autofill to https://accounts.google.com?



    win.loadURL('https://accounts.google.com')

});
</code></pre>

<p><a href="http://electron.atom.io/docs/api/app/#event-login" rel="noreferrer">Here is the link to the specification in their docs</a></p>