{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/389","labels_url":"https://api.github.com/repos/meanjs/mean/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/389/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/389/events","html_url":"https://github.com/meanjs/mean/issues/389","id":56409586,"number":389,"title":"MEAN.js 0.4.0 with token authentication?","user":{"login":"ricardodovalle","id":3634150,"avatar_url":"https://avatars.githubusercontent.com/u/3634150?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardodovalle","html_url":"https://github.com/ricardodovalle","followers_url":"https://api.github.com/users/ricardodovalle/followers","following_url":"https://api.github.com/users/ricardodovalle/following{/other_user}","gists_url":"https://api.github.com/users/ricardodovalle/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardodovalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardodovalle/subscriptions","organizations_url":"https://api.github.com/users/ricardodovalle/orgs","repos_url":"https://api.github.com/users/ricardodovalle/repos","events_url":"https://api.github.com/users/ricardodovalle/events{/privacy}","received_events_url":"https://api.github.com/users/ricardodovalle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"lirantal","id":316371,"avatar_url":"https://avatars.githubusercontent.com/u/316371?v=3","gravatar_id":"","url":"https://api.github.com/users/lirantal","html_url":"https://github.com/lirantal","followers_url":"https://api.github.com/users/lirantal/followers","following_url":"https://api.github.com/users/lirantal/following{/other_user}","gists_url":"https://api.github.com/users/lirantal/gists{/gist_id}","starred_url":"https://api.github.com/users/lirantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lirantal/subscriptions","organizations_url":"https://api.github.com/users/lirantal/orgs","repos_url":"https://api.github.com/users/lirantal/repos","events_url":"https://api.github.com/users/lirantal/events{/privacy}","received_events_url":"https://api.github.com/users/lirantal/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/meanjs/mean/milestones/4","html_url":"https://github.com/meanjs/mean/milestones/0.4.x","labels_url":"https://api.github.com/repos/meanjs/mean/milestones/4/labels","id":1035360,"number":4,"title":"0.4.x","description":"Issues that will be handled at some point in time through the 0.4.x release cycle","creator":{"login":"ilanbiala","id":3695164,"avatar_url":"https://avatars.githubusercontent.com/u/3695164?v=3","gravatar_id":"","url":"https://api.github.com/users/ilanbiala","html_url":"https://github.com/ilanbiala","followers_url":"https://api.github.com/users/ilanbiala/followers","following_url":"https://api.github.com/users/ilanbiala/following{/other_user}","gists_url":"https://api.github.com/users/ilanbiala/gists{/gist_id}","starred_url":"https://api.github.com/users/ilanbiala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilanbiala/subscriptions","organizations_url":"https://api.github.com/users/ilanbiala/orgs","repos_url":"https://api.github.com/users/ilanbiala/repos","events_url":"https://api.github.com/users/ilanbiala/events{/privacy}","received_events_url":"https://api.github.com/users/ilanbiala/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":113,"state":"open","created_at":"2015-03-23T22:38:37Z","updated_at":"2015-10-18T20:14:31Z","due_on":null,"closed_at":null},"comments":67,"created_at":"2015-02-03T17:30:10Z","updated_at":"2015-10-18T20:53:51Z","closed_at":null,"body":"I would like to use MEAN.js with token authentication, but I am a  Node.js beginner and I am porting a Rails app to learn.\r\n\r\nI created a small project and add some features, the `'api/signin'` route is returning the token (`loginToken`) encoded with json web token (`jwt`), but I need help.\r\n\r\nHow to connect and keep Angular session a live using token?\r\nHow to add `express-jwt` and to protect all `/api` route keeping the project organized?\r\nWhat is the correct way to store the secret? `(users.authentication.server.controller.js and strategies/local-token.js)`?\r\nWhat is the correct way to user `signout`?\r\n\r\n*Working on: https://github.com/ricardodovalle/meanjs-token-auth*\r\n\r\nThank you very much.\r\n"},"comment":{"url":"https://api.github.com/repos/meanjs/mean/issues/comments/149046742","html_url":"https://github.com/meanjs/mean/issues/389#issuecomment-149046742","issue_url":"https://api.github.com/repos/meanjs/mean/issues/389","id":149046742,"user":{"login":"jloveland","id":3456708,"avatar_url":"https://avatars.githubusercontent.com/u/3456708?v=3","gravatar_id":"","url":"https://api.github.com/users/jloveland","html_url":"https://github.com/jloveland","followers_url":"https://api.github.com/users/jloveland/followers","following_url":"https://api.github.com/users/jloveland/following{/other_user}","gists_url":"https://api.github.com/users/jloveland/gists{/gist_id}","starred_url":"https://api.github.com/users/jloveland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jloveland/subscriptions","organizations_url":"https://api.github.com/users/jloveland/orgs","repos_url":"https://api.github.com/users/jloveland/repos","events_url":"https://api.github.com/users/jloveland/events{/privacy}","received_events_url":"https://api.github.com/users/jloveland/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T20:53:51Z","updated_at":"2015-10-18T20:53:51Z","body":"@lirantal, should this be assigned to milestone 0.5.x?"}}