{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/57","labels_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/57/comments","events_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/57/events","html_url":"https://github.com/strongloop/loopback-component-passport/issues/57","id":70358715,"number":57,"title":"accessToken cookie not being set for local-login","user":{"login":"Gouthamve","id":7354143,"avatar_url":"https://avatars.githubusercontent.com/u/7354143?v=3","gravatar_id":"","url":"https://api.github.com/users/Gouthamve","html_url":"https://github.com/Gouthamve","followers_url":"https://api.github.com/users/Gouthamve/followers","following_url":"https://api.github.com/users/Gouthamve/following{/other_user}","gists_url":"https://api.github.com/users/Gouthamve/gists{/gist_id}","starred_url":"https://api.github.com/users/Gouthamve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gouthamve/subscriptions","organizations_url":"https://api.github.com/users/Gouthamve/orgs","repos_url":"https://api.github.com/users/Gouthamve/repos","events_url":"https://api.github.com/users/Gouthamve/events{/privacy}","received_events_url":"https://api.github.com/users/Gouthamve/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-component-passport/labels/triage","name":"triage","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-04-23T09:25:00Z","updated_at":"2015-10-21T04:56:39Z","closed_at":null,"body":"I was trying to use make an authenticated api call after logging in using the passport-local. But the accessToken signed cookie is not being set for local.\r\n\r\nWhen I login through Fb, I get a signed cookie with accessToken but that is not happening for local. I have added the following option to providers.json for local but still the cookie is not being set.\r\n```json\r\n\"setAccessToken\": true\r\n```\r\n\r\nSteps to reproduce:\r\nClone the ```loopback-example-passport``` repo and use the local login. You will see that the accessToken is virtually impossible to retrieve."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/comments/149783063","html_url":"https://github.com/strongloop/loopback-component-passport/issues/57#issuecomment-149783063","issue_url":"https://api.github.com/repos/strongloop/loopback-component-passport/issues/57","id":149783063,"user":{"login":"gustavomick","id":4327429,"avatar_url":"https://avatars.githubusercontent.com/u/4327429?v=3","gravatar_id":"","url":"https://api.github.com/users/gustavomick","html_url":"https://github.com/gustavomick","followers_url":"https://api.github.com/users/gustavomick/followers","following_url":"https://api.github.com/users/gustavomick/following{/other_user}","gists_url":"https://api.github.com/users/gustavomick/gists{/gist_id}","starred_url":"https://api.github.com/users/gustavomick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gustavomick/subscriptions","organizations_url":"https://api.github.com/users/gustavomick/orgs","repos_url":"https://api.github.com/users/gustavomick/repos","events_url":"https://api.github.com/users/gustavomick/events{/privacy}","received_events_url":"https://api.github.com/users/gustavomick/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T04:56:39Z","updated_at":"2015-10-21T04:56:39Z","body":"trying to understand here.. why do we need two tokens stored in two diferent places? .. thanks!"}}