I have integrated okta authentication with my angular application. Right now I have the application running on localhost:4200.
I have followed the exact steps from the official okta documentation (Sign users in to your SPA using the redirect model | Okta Developer) for the integration.
PROBLEM I AM FACING:
When I hit localhost:4200 on browser the okta login page takes some time to load, and for these 2-3 seconds my application home screen is exposed. I don’t want this to happen, since I want only authenticated users to be able to see the application. Help me out! I have attached code snippets for app.module.ts
and app-routing.module.ts
app.module.ts
app-routing.module.ts
Thanks for your help in advance!