{"action":"created","issue":{"url":"https://api.github.com/repos/solidgoldpig/mondo-bank/issues/27","repository_url":"https://api.github.com/repos/solidgoldpig/mondo-bank","labels_url":"https://api.github.com/repos/solidgoldpig/mondo-bank/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/solidgoldpig/mondo-bank/issues/27/comments","events_url":"https://api.github.com/repos/solidgoldpig/mondo-bank/issues/27/events","html_url":"https://github.com/solidgoldpig/mondo-bank/issues/27","id":145652322,"number":27,"title":"Is this library up-to-date with the API","user":{"login":"JayBizzle","id":340752,"avatar_url":"https://avatars.githubusercontent.com/u/340752?v=3","gravatar_id":"","url":"https://api.github.com/users/JayBizzle","html_url":"https://github.com/JayBizzle","followers_url":"https://api.github.com/users/JayBizzle/followers","following_url":"https://api.github.com/users/JayBizzle/following{/other_user}","gists_url":"https://api.github.com/users/JayBizzle/gists{/gist_id}","starred_url":"https://api.github.com/users/JayBizzle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayBizzle/subscriptions","organizations_url":"https://api.github.com/users/JayBizzle/orgs","repos_url":"https://api.github.com/users/JayBizzle/repos","events_url":"https://api.github.com/users/JayBizzle/events{/privacy}","received_events_url":"https://api.github.com/users/JayBizzle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-04T11:05:39Z","updated_at":"2016-04-05T07:37:29Z","closed_at":null,"body":"Hi,\r\n\r\nBeen playing around building a small electron app which uses this library, but from what I can see, this library uses the `OAuth password grant` authentication method which has been deprecated (requires username and password) rather than the `authorisation code grant` method.\r\n\r\nOr am i missing something?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/solidgoldpig/mondo-bank/issues/comments/205702634","html_url":"https://github.com/solidgoldpig/mondo-bank/issues/27#issuecomment-205702634","issue_url":"https://api.github.com/repos/solidgoldpig/mondo-bank/issues/27","id":205702634,"user":{"login":"solidgoldpig","id":4856,"avatar_url":"https://avatars.githubusercontent.com/u/4856?v=3","gravatar_id":"","url":"https://api.github.com/users/solidgoldpig","html_url":"https://github.com/solidgoldpig","followers_url":"https://api.github.com/users/solidgoldpig/followers","following_url":"https://api.github.com/users/solidgoldpig/following{/other_user}","gists_url":"https://api.github.com/users/solidgoldpig/gists{/gist_id}","starred_url":"https://api.github.com/users/solidgoldpig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solidgoldpig/subscriptions","organizations_url":"https://api.github.com/users/solidgoldpig/orgs","repos_url":"https://api.github.com/users/solidgoldpig/repos","events_url":"https://api.github.com/users/solidgoldpig/events{/privacy}","received_events_url":"https://api.github.com/users/solidgoldpig/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T07:37:29Z","updated_at":"2016-04-05T07:37:29Z","body":"As far as I'm aware nothing has changed apart from adding the oauth via email link.\r\n\r\nThe password grant still works for me (and is still in the docs) - and I'm going to argue that it shouldn't be deprecated for logging into one's own account with one's own app\r\n\r\nIf you need to get a token there are 2 passport modules out there:\r\n\r\nhttps://www.npmjs.com/package/passport-mondo\r\nhttps://www.npmjs.com/package/passport-mondo-oauth2\r\n\r\nor I just chucked together an auth script here:\r\n\r\nhttps://gist.github.com/solidgoldpig/c66af9cbe30081a1546072b25eb26ac9\r\n\r\n"}}