[Electron] Redirect from the web to deep link doesn't close the web page

Hi there,

Auth0 is an amazing product! We’re integrating it into our Electron app. Our use-case is logging into the Electron app using the browser. The user clicks on a button in the app which opens the Auth0 Universal Login page in the default browser. Once the login is complete, we redirect the user back to the Electron app using a deep link with a pre-registered custom scheme like appName://authentication. We pass this link to Auth0 login page using the redirect_uri query parameter.

The flow described above works well. The only issue is that the Universal Login page stays open in the browser after the deep link is triggered. Is there a way to close the browser page once the deep link is triggered similar to how Github Desktop does it?

Thanks,
Alex

Hi there @fsproru, welcome to the Auth0 Community!

Our very own @bruno.krebs built out this latest Electron blog article leveraging Auth0 just a few weeks ago. When you get a chance can you give it a peek and see if it helps bring some light to your situation? From there we can build out what the next step may be. Thanks!

Hi @James.Morrison, yep, it’s a good one. It’s one of the articles I was following. You have some impressive content and the on-point documentation BTW.

So the question is about authenticating Electron app using a web browser. The only issue is that the Universal Login page stays open in the browser after the deep link is triggered. Is there a way to close the browser page once the deep link is triggered similar to how Github Desktop does it?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.