Im' trying to upgrade my App to @Angular@16
,so i had to upgrades Msal Packages too.
@azure/msal-angular@3
and @azure/msal-browser@3
.
The Point is that @microsoft/mgt-msal2-provider
is still using @azure/msal-browser": "^2.22.0
and then is incompatible.
the PublicClientApplication is not compatible anymore as global provider
constructor(
@Inject(MSAL_INSTANCE) public publicClientApplication: PublicClientApplication
) {
Providers.globalProvider = new Msal2Provider({
publicClientApplication: this.publicClientApplication
});
}
Is there a way to fix this.
I Tried to overrides the version with
"dependencies": {
"@microsoft/mgt": "^3.1.1",
"@microsoft/mgt-msal2-provider": "^3.1.1",
"@azure/msal-angular": "^3.0.2",
"@azure/msal-browser": "^3.0.2",
},
"overrides" : {
"@microsoft/mgt-msal2-provider": {
"@azure/msal-browser": "^3.0.2"
}
},
the error disapear but none of the mgt components are displayed anymore.