{"action":"created","issue":{"url":"https://api.github.com/repos/feathersjs/feathers-authentication-client/issues/48","repository_url":"https://api.github.com/repos/feathersjs/feathers-authentication-client","labels_url":"https://api.github.com/repos/feathersjs/feathers-authentication-client/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/feathersjs/feathers-authentication-client/issues/48/comments","events_url":"https://api.github.com/repos/feathersjs/feathers-authentication-client/issues/48/events","html_url":"https://github.com/feathersjs/feathers-authentication-client/issues/48","id":227118850,"number":48,"title":"AccessToken is getting removed after app refresh","user":{"login":"knappdev","id":28358678,"avatar_url":"https://avatars0.githubusercontent.com/u/28358678?v=4","gravatar_id":"","url":"https://api.github.com/users/knappdev","html_url":"https://github.com/knappdev","followers_url":"https://api.github.com/users/knappdev/followers","following_url":"https://api.github.com/users/knappdev/following{/other_user}","gists_url":"https://api.github.com/users/knappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/knappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knappdev/subscriptions","organizations_url":"https://api.github.com/users/knappdev/orgs","repos_url":"https://api.github.com/users/knappdev/repos","events_url":"https://api.github.com/users/knappdev/events{/privacy}","received_events_url":"https://api.github.com/users/knappdev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-08T17:36:39Z","updated_at":"2017-07-18T10:07:45Z","closed_at":null,"body":"I have configured my feathers app to store token AsyncStorage. But seems like access token is getting removed when the app is reloaded.\r\n\r\ncode: \r\nexport const restApp = feathers()\r\n  .configure(rest(host).superagent(superagent))\r\n  .configure(hooks())\r\n  .configure(authentication({\r\n    storage: AsyncStorage,\r\n  }))\r\n\r\nPackage details:\r\n    \"feathers\": \"^2.1.1\",\r\n    \"feathers-authentication-client\": \"^0.3.2\",\r\n    \"feathers-errors\": \"^2.7.1\",\r\n    \"feathers-hooks\": \"^2.0.1\",\r\n    \"feathers-rest\": \"^1.7.2\",\r\n    \"feathers-socketio\": \"^1.6.0\",\r\n\r\n    \"react\": \"^16.0.0-alpha.6\",\r\n    \"react-native\": \"^0.44.0\","},"comment":{"url":"https://api.github.com/repos/feathersjs/feathers-authentication-client/issues/comments/316018760","html_url":"https://github.com/feathersjs/feathers-authentication-client/issues/48#issuecomment-316018760","issue_url":"https://api.github.com/repos/feathersjs/feathers-authentication-client/issues/48","id":316018760,"user":{"login":"keesee","id":3608610,"avatar_url":"https://avatars3.githubusercontent.com/u/3608610?v=4","gravatar_id":"","url":"https://api.github.com/users/keesee","html_url":"https://github.com/keesee","followers_url":"https://api.github.com/users/keesee/followers","following_url":"https://api.github.com/users/keesee/following{/other_user}","gists_url":"https://api.github.com/users/keesee/gists{/gist_id}","starred_url":"https://api.github.com/users/keesee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keesee/subscriptions","organizations_url":"https://api.github.com/users/keesee/orgs","repos_url":"https://api.github.com/users/keesee/repos","events_url":"https://api.github.com/users/keesee/events{/privacy}","received_events_url":"https://api.github.com/users/keesee/received_events","type":"User","site_admin":false},"created_at":"2017-07-18T10:07:45Z","updated_at":"2017-07-18T10:07:45Z","body":"Took a quick peek.  this is because Async store return a promise, not a value.  it seems the token is still in my storage, but getJWT isn't return the proper value for feathers to set in its settings store.  I don't have time to tackle this today but will post something when I do for those struggling with this. "}}
{"actor":{"display_login":"keesee"}}