Signinwithredirect okta angular is always false

I have created a basic angular app.
After Clicking on sing in i am able to navigate to login page, but it is not redirecting back to my app
And Authentication state is always false.

here is my expample project.


I was facing the same issue. Please refer to my answer from this post: Angular App: oktaAuth.isAuthenticated() is always false - #4 by rcorkery