public static string GetEmail(this IPrincipal principal) { return(principal.GetFromClaim(ClaimTypes.Email)); }