I am try to save the jira instance after Oauth2 authentication.
I am able to get the access token.
In basic authentication I can do that as
Atlassian.Jira.Jira jira = Jira.CreateRestClient(url,email,api token);
But I am not able to store the instance in Atlassian.Jira.Jira variable using bearer token.