using Microsoft.AspNetCore.Components.WebAssembly.Authentication; using Microsoft.Extensions.Options; namespace decePubClient.Services { public class ApiAuthorizationOptionsConfiguration : IPostConfigureOptions> { public void Configure(RemoteAuthenticationOptions options) { options.UserOptions.RoleClaim ??= "role"; } public void PostConfigure(string name, RemoteAuthenticationOptions options) { if (string.Equals(name, Options.DefaultName)) Configure(options); } } }