public bool IsAdmin() { return(Claims.FindFirst(Role).Value == "admin"); }
public string GetIndentityProvider() { return(Claims.FindFirst(IdentityProvider).Value); }
public string GetCurrentUserName() { return(Claims.FindFirst(UserName).Value); }
public string GetCurrentEmail() { return(Claims.FindFirst(Email).Value); }
public Guid GetCurrentUserId() { return(Claims.FindFirst(UserId).Value.ConvertTo <Guid>()); }