Role-Based Authentication in ASP.NET
UseAddRoles<IdentityRole>to add role management capabilities.
builder.Services.AddDefaultIdentity<IdentityUser>(options => options.SignIn.RequireConfirmedAccount = true)
.AddRoles<IdentityRole>()
.AddEntityFrameworkStores<AuthenticationCon...
sudipbhandari.hashnode.dev2 min read