As you are getting a script error on the msal JavaScript library, I’d suspect configuration or issues with the msal library. Every release of Blazor has better support for msal. As you appear to be at the beginning of the project I’d upgrade to a new version of Blazor either .net 9 or 10. Version 10 has improved samples:
note: with blazor or Maui apps which are evolving rapidly, it’s best to be on the current version.