0

I have a react app using Azure B2C for user registration/login (with msal-react). Now I also need to add login for internal users with Azure AD, but I don't see any way to add multiple msal instaces in the same app. I have the normal setup:

const msalInstance = new PublicClientApplication(msalConfig);
<MsalProvider instance={msalInstance}>
Rest of app
</MsalProvider>

But I don't see how I can add another provider for AzureAD. Federating AzureAD into B2C is not an option as there needs to be a bigger separation between external and interal login.

Do anyone know if this can be achived with msal-react or du I have to use msal.js directly?

mlidal
  • 1,111
  • 14
  • 27

0 Answers0