floralvikings / jira-connector

NodeJS Wrapper for the Jira REST API
http://floralvikings.github.io/jira-connector/
MIT License
373 stars 180 forks source link

auth.currentUser isn't using the right version of the API #135

Closed svachon2 closed 5 years ago

svachon2 commented 5 years ago

In auth.js, method currentUser is using:

uri: this.jiraClient.buildURL('/session'),

this should be

uri: this.jiraClient.buildAuthURL('/session'),

in order to use the right authentication API version

svachon2 commented 5 years ago

workaround: To validate if a session still active, we can use myself.getMyself(false) instead of auth.currentUser()

MrRefactoring commented 5 years ago

I corrected this error. Given the update rate of this library, I would use my version

marias-truelogic commented 5 years ago

@MrRefactoring I tried using your library, but I'm getting a:

const api = new JiraApi({ is not a constructor. Ideas? (Not TS)

MrRefactoring commented 5 years ago

Fixed in version 2.11.0