The Logout button is in MainLayout. We condition rendering it with answer from the server to
|
isAuthenticated = await AccountService.IsAuthenticated(); |
If we're not authenticated, there's no point in displaying it.
We are asking about it in the latest rendering method possible: OnAfterRenderAsync. It looks like that in the first render, it's still too early and the method returns false.
It happens also when we navigate from Login page to the returnUrl:
|
Navigation.NavigateTo(returnUrl); |
not anymore,
fefffff fixed that part.
The
Logoutbutton is in MainLayout. We condition rendering it with answer from the server toCashFlowAnalyzer/CashFlowAnalyzer.Client/Layout/MainLayout.razor
Line 39 in 74d7602
If we're not authenticated, there's no point in displaying it.
We are asking about it in the latest rendering method possible:
OnAfterRenderAsync. It looks like that in the first render, it's still too early and the method returnsfalse.It happens also when we navigate from
Loginpage to thereturnUrl:CashFlowAnalyzer/CashFlowAnalyzer.Client/Pages/Security/Login.razor
Line 72 in 73b1e45
not anymore, fefffff fixed that part.