Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
donalnofrixion committed Apr 24, 2024
1 parent f00bbb1 commit e52a461
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/NoFrixion.MoneyMoov/Claims/IdentityExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ public static string GetTokenId(this IIdentity identity)

public static bool HasAudience(this IIdentity identity, params string[] audiences)
{
return audiences.Where(a => !string.IsNullOrEmpty(a)).Any(audience => ((ClaimsIdentity)identity)?.FindFirst(x => x.Type == "aud")?.Value == audience);
return audiences
.Where(a => !string.IsNullOrEmpty(a))
.Any(audience => ((ClaimsIdentity)identity)?
.FindFirst(x => x.Type == "aud")?.Value == audience);
}

public static User GetUser(this IIdentity identity)
Expand Down

0 comments on commit e52a461

Please sign in to comment.