Feature: 2 delayed exceptions occur with .NET 7 and Blazor Server using Auth0.
Description: Using the QuizManager as the demo application which is currently built with .NET 6, when you login or out, no exceptions occur after waiting a predetermined amount of time (anywhere from 30 seconds up to 2 minutes). However, when upgrading the application to use .NET 7, you will receive 2 delayed exceptions (anywhere from 30 seconds to 2 minutes after the action) as follows:
fail: Microsoft.AspNetCore.Components.Server.Circuits.RemoteNavigationManager[4]
Navigation failed when changing the location to https://localhost:7060/login?redirectUri=/
System.Threading.Tasks.TaskCanceledException: A task was canceled.
The 2nd exception occurs at the same time - this almost looks like something isn’t configured right with .NET.
fail: Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost[111]
Unhandled exception in circuit ‘9QvE4WOFQi9O_SlUhE_NnEt8TCb7pVIB3LP5svcvGv8’.
Use-case: This was discovered while creating a .NET 7.0 Blazor Server application. Once changed to .NET 6, the exceptions did not occur. This appears to be an issue with the .NET Framework and not Auth0 as it appears to be auto redirecting after a specified amount of time. To see the behavior, download the Quiz Manager demo application, run it as .NET 6, login and wait for up to 2 minutes. Look in the console for the exceptions as nothing will appear in the interface or browser console. Change the application to use .NET 7 and perform the same actions and you will see 2 exceptions as specified above.