maybe I am late but for follow up readers Microsoft recommends for Blazor Server Apps the AuthenticationStateProvider. You can inject it in your services as you want.
Best regards