I havent found a solution to this problem yet, and the only other similar question on here was resolved but the links of the solution are obsolete.
When i try to use the generate JiraClient from this output if i use my password it works, if i use my Personal Access Token (PAT) which i generated on my account from JIRA i get a 401 Error.
return Jira.CreateRestClient(jUrl, userName, userPersonalJiraToken);