Before in ngModule base angular application you use to add MsalRedirectComponent in the bootstrap property of AppModule :
bootstrap: [AppComponent, MsalRedirectComponent]
Now in V15.2 the AppModule have been replace by the boostrapApplication function in main.ts :
bootstrapApplication(AppComponent, {
providers: [
importProvidersFrom(
BrowserModule,
AppRoutingModule,
),
provideAnimations(),
provideHttpClient(withInterceptorsFromDi())
]
})
.catch(err => console.error(err));
How to add the MsalRedirectComponent bootstrap ?
I try to add an other call after the first :
bootstrapApplication(MsalRedirectComponent, {
providers: [
importProvidersFrom(
BrowserModule,
AppRoutingModule,),
provideHttpClient(withInterceptorsFromDi())
]
})
.catch(err => console.error(err));
But this didn't work, the redirect didn't fired.