Should this sample work fine with .AddRoles?
I've downloaded the sample and changed to a persistent DbContext, registered a user and then added the relevant records to AspNetRoles and AspNetUserRoles, but when I log in on the WASM app I don't get any role claims.. The cookie increases in size by ~100 chars so my guess is the API responding with a cookie that contains the role claim but the WASM app doesnt see it for some reason.
builder.Services.AddDbContext<AppDbContext>(options =>
{
options.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=Testdb;Trusted_Connection=True", assembly => assembly.MigrationsAssembly(typeof(AppDbContext).Assembly.FullName));
});
// add identity and opt-in to endpoints
builder.Services.AddIdentityCore<AppUser>()
.AddRoles<IdentityRole>()
.AddEntityFrameworkStores<AppDbContext>()
.AddApiEndpoints();

Should they be sent in the response to manage/info?

Issue Details
⚠ Do not edit this section. It is required for issue processing.
Should this sample work fine with .AddRoles?
I've downloaded the sample and changed to a persistent DbContext, registered a user and then added the relevant records to AspNetRoles and AspNetUserRoles, but when I log in on the WASM app I don't get any role claims.. The cookie increases in size by ~100 chars so my guess is the API responding with a cookie that contains the role claim but the WASM app doesnt see it for some reason.
Should they be sent in the response to manage/info?
Issue Details
⚠ Do not edit this section. It is required for issue processing.