Maintain cookies for an application using Google Apps authentication


I am building a very simple application which depends on Google Apps authentication. In order to understand how the cookies behave i am just opening the site through a Atom Electron application where i have to login into Google Apps first and then redirected to the web application. Although when i close the application and re-open it, i need to re-login. Is there a way to keep these cookies? I simply open the web application by using `mainWindow.loadURL(‘’);``