@bind-Value="@variable" @oninput="@(args => OnInput(args.Value.ToString()))"
public string variable {get; set;}
void OnInput(string value)
{
variable = value;
}
var authState = await AuthenticationStateProvider.GetAuthenticationStateAsync();
var user = authState.User;
if (user.Identity.IsAuthenticated)
{
...
}