How to open the Okta widget inside the electron application using angular

We are developing an electron application using Angular. We use Okta login for SSO. When the user clicks on the login button in our application it opens the browser with a login form. On login success we are able to open our desktop application.

Our current requirement “Is there a way to load the Okta widget inside the same electron window. Without re-directing to the browser or opening the widget in another window”.