How to Ensure initial Authentication with Azure AD in Angular App using Guards
I have an Angular application that’s used internally within our intranet. The requirement is straightforward: users should be authenticated with Azure Active Directory as soon as they access any URL within the app. There’s no need for a dedicated login or logout page. The authentication should be seamless and automatic. Here’s what I’ve done so far:
Error – NullInjectorError: R3InjectorError(Environment Injector)[Store -> Store]: Angular 17
Who can help me with this error? I am working with version 17.2.2 of Angular.