Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
fix: claim duplicates (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ademargoncalves authored Jul 29, 2022
1 parent 2bfd936 commit ad654dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static string AuthenticationMethod(this IEnumerable<Claim> claims)

private static string GetValue(this IEnumerable<Claim> claims, string type)
{
var claim = claims?.SingleOrDefault(x => x.Type == type);
var claim = claims?.FirstOrDefault(x => x.Type == type);

return claim?.Value;
}
Expand Down

0 comments on commit ad654dc

Please sign in to comment.