We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ed7400 commit 26b2362Copy full SHA for 26b2362
1 file changed
aspnetcore/blazor/security/webassembly/hosted-with-identity-server.md
@@ -300,7 +300,7 @@ public class CustomUserFactory
300
if (user.Identity.IsAuthenticated)
301
{
302
var identity = (ClaimsIdentity)user.Identity;
303
- var roleClaims = identity.FindAll(identity.RoleClaimType);
+ var roleClaims = identity.FindAll(identity.RoleClaimType).ToArray();
304
305
if (roleClaims != null && roleClaims.Any())
306
0 commit comments