You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidOperationException($"Authorization requires a cascading parameter of type Task<{nameof(AuthenticationState)}>. Consider using {typeof(CascadingAuthenticationState).Name} to supply this.");
86
86
}
87
87
88
-
// First render in pending state
89
-
// If the task has already completed, this render will be skipped
90
-
currentAuthenticationState=null;
88
+
// Clear the previous result of authorization
89
+
// This will cause the Authorizing state to be displayed until the authorization has been completed
90
+
isAuthorized=null;
91
91
92
-
// Then render in completed state
93
-
// Importantly, we *don't* call StateHasChanged between the following async steps,
94
-
// otherwise we'd display an incorrect UI state while waiting for IsAuthorizedAsync
0 commit comments