Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-dudarev committed Oct 10, 2024
1 parent 4ef6cb2 commit f16ad27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static bool IsExternalSignIn(this ClaimsPrincipal claimsPrincipal)

public static string GetAuthenticationMethod(this ClaimsPrincipal claimsPrincipal)
{
return claimsPrincipal?.FindFirst(ClaimTypes.AuthenticationMethod)?.Value;
return claimsPrincipal?.FindFirstValue(ClaimTypes.AuthenticationMethod);
}

public static ClaimsPrincipal SetAuthenticationMethod(this ClaimsPrincipal claimsPrincipal, string value, IList<string> destinations)
Expand Down

0 comments on commit f16ad27

Please sign in to comment.