diff --git a/src/Farfetch.IdentityServer.Contrib.TokenExchange/Extensions/ClaimsExtensions.cs b/src/Farfetch.IdentityServer.Contrib.TokenExchange/Extensions/ClaimsExtensions.cs index 6a9d65d..5a4800b 100644 --- a/src/Farfetch.IdentityServer.Contrib.TokenExchange/Extensions/ClaimsExtensions.cs +++ b/src/Farfetch.IdentityServer.Contrib.TokenExchange/Extensions/ClaimsExtensions.cs @@ -37,7 +37,7 @@ public static string AuthenticationMethod(this IEnumerable claims) private static string GetValue(this IEnumerable claims, string type) { - var claim = claims?.SingleOrDefault(x => x.Type == type); + var claim = claims?.FirstOrDefault(x => x.Type == type); return claim?.Value; }