Following on from my last post demonstrating Blazor with Auth0, I've put together a similar example with Azure B2C using Microsoft's MSAL.js library.
This is quite a basic example but could be useful as a starting point. The code is available on Github.
The structure is very similar to the Auth0 example. We've got a small amount of JS code:
This and MSAL.js is included in our main index.html file:
With a B2CService class:
And our AppState:
And finally our MainLayout and Startup files:
And that's pretty much it. This example doesn't require the Linker.xml file I included in the Auth0 example. Let me know if you have any comments / questions!