Unable to logout from electron app using Auth0

Hi @ShubhamMetkar, welcome to the Auth0 Community!

Regarding your issues with Electron, I have an initial caveat: the article you mentioned has been tested with Electron 9, so I’m not sure it is still valid with newer versions of Electron.

Did you try to download and run the accompanying sample app?

Since you are not able to see your profile image, name, and the welcome message, but you say you are authenticated, I guess it is an issue in the JavaScript code. Did you check if you have any JavaScript errors?

Maybe the logout issue may be a consequence of these initial issues.

In your last sentence, you mentioned you are using a Google account to authenticate (“in the auth0 logs I’m able to see the person, time & mode(google auth0)”).
This makes me think about the possible real cause of all your problems. Google imposed some restrictions on the authentication performed in embedded browsers, like the one used in this Electron application.
To learn more, read this document.
A possible solution is outlined here, but with some caveats.

I hope I’ve given you helpful directions.

2 Likes