OKTA signin widget is not rendering on page routing


I am using Angular 7.2, @Okta/Okta-angular 1.2.1 and @okta/okta-signin-widget 2.19.0.

On first load of application, I am able to see the login widget but if start routing on other pages which are not required to authentication and coming back on login page again either via app routing or via browser back button then unable to see the login widget.

I found this problem also in okta-sign-in widget sample code. (https://github.com/okta/samples-js-angular/tree/master/custom-login)

Please provide suggestion to handle this issue.


If you’re seeing this bug in one of our samples, can you please create an issue in the GitHub project for it? Thanks!


Thanks mraible.

I found the solution for this issue.