Is there a way to get the current logged in Windows user?

Is this solution for Blazor Web Assembly? I cannot install the nuget AspNetCore.Authentication.Negotiate in the client project to use the AddAuthentication, it gives the error
" There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'"