I am building an ElectronJs application which runs in background (in tray). I want to add Sign in with Google
feature in the app using Firebase Auth. I tried searching but do not see any documentation around it. Few issues I faced:
User
object as main process does API calls in background that require Auth token.Is there a way I can implement auth code in main process and then use IPC to open the login window using renderer?
Here is the solution that worked for me
signinwithcredentials
API of firebase auth. This takes the credentials object and performs the login.