{"action":"closed","issue":{"url":"https://api.github.com/repos/docusign/DocuSign-Node-Client/issues/14","labels_url":"https://api.github.com/repos/docusign/DocuSign-Node-Client/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/docusign/DocuSign-Node-Client/issues/14/comments","events_url":"https://api.github.com/repos/docusign/DocuSign-Node-Client/issues/14/events","html_url":"https://github.com/docusign/DocuSign-Node-Client/issues/14","id":100466496,"number":14,"title":"refactor to decouple oauth token fetch from init","user":{"login":"Whoaa512","id":1581943,"avatar_url":"https://avatars.githubusercontent.com/u/1581943?v=3","gravatar_id":"","url":"https://api.github.com/users/Whoaa512","html_url":"https://github.com/Whoaa512","followers_url":"https://api.github.com/users/Whoaa512/followers","following_url":"https://api.github.com/users/Whoaa512/following{/other_user}","gists_url":"https://api.github.com/users/Whoaa512/gists{/gist_id}","starred_url":"https://api.github.com/users/Whoaa512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Whoaa512/subscriptions","organizations_url":"https://api.github.com/users/Whoaa512/orgs","repos_url":"https://api.github.com/users/Whoaa512/repos","events_url":"https://api.github.com/users/Whoaa512/events{/privacy}","received_events_url":"https://api.github.com/users/Whoaa512/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docusign/DocuSign-Node-Client/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T05:00:15Z","updated_at":"2015-09-03T19:19:31Z","closed_at":"2015-09-03T19:19:31Z","body":"Every time someone uses the package to log a given user in they consume 2 API calls.\r\n\r\nThis has the negative side effect of eating an unnecessary call. We could handle this more cleanly if we make the SDK consumers store they oauth token and use it explicitly for every call.\r\n\r\nAlternatively they could also choose to use username/password auth for every call as well.\r\n\r\nNeed some time to think about how this should be implemented."}}