'OKTA OpenId Integration with Angular2, seems Okta service is not compatible with Angular2

When I am trying to redirect my application to the login page when any error is coming up from api while login it should redirect to the OKTA Login page again. But the page is keep on loading. I tried using Okta Service (@okta/[email protected]) to use isAuthenticated() method but seems it is not compatible with ANgular2. If anyone can suggest any solution for this would be a great help?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source