@using Microsoft.AspNetCore.Components.Authorization should be in _imports.razor instead of the loginOrLogout.razor file directly