How can I implement SSO in electron apps? If user login into primary electron app then other electron apps should get automatically logged in with same user. User need not to login to each electron app if it has already logged in primary app.
If you implement the login process through an OIDC/OAuth 2.0 provider and use the system browser to launch the login instead of a web view within the application itself then you may be able to leverage SSO, because all Electron apps will launch login through the system browser and as such the authentication session may be reused. This option of using the system browser is documented by Google as Google actually disallows the use of web views for their login page (https://developers.google.com/identity/protocols/oauth2/native-app).