{"action":"created","issue":{"url":"https://api.github.com/repos/maxmantz/redux-oidc/issues/96","repository_url":"https://api.github.com/repos/maxmantz/redux-oidc","labels_url":"https://api.github.com/repos/maxmantz/redux-oidc/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/maxmantz/redux-oidc/issues/96/comments","events_url":"https://api.github.com/repos/maxmantz/redux-oidc/issues/96/events","html_url":"https://github.com/maxmantz/redux-oidc/issues/96","id":304809433,"number":96,"title":"LoadUser return null after login","user":{"login":"bohdanbirdie","id":23266928,"avatar_url":"https://avatars3.githubusercontent.com/u/23266928?v=4","gravatar_id":"","url":"https://api.github.com/users/bohdanbirdie","html_url":"https://github.com/bohdanbirdie","followers_url":"https://api.github.com/users/bohdanbirdie/followers","following_url":"https://api.github.com/users/bohdanbirdie/following{/other_user}","gists_url":"https://api.github.com/users/bohdanbirdie/gists{/gist_id}","starred_url":"https://api.github.com/users/bohdanbirdie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bohdanbirdie/subscriptions","organizations_url":"https://api.github.com/users/bohdanbirdie/orgs","repos_url":"https://api.github.com/users/bohdanbirdie/repos","events_url":"https://api.github.com/users/bohdanbirdie/events{/privacy}","received_events_url":"https://api.github.com/users/bohdanbirdie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-13T15:18:43Z","updated_at":"2018-03-14T13:17:53Z","closed_at":null,"author_association":"NONE","body":"`user` is `null` when loading for the first time after login redirect\r\n```JSON\r\n\"redux-oidc\": \"^3.0.0-beta.16\",\r\n\"oidc-client\": \"^1.4.1\"\r\n```\r\n\r\n```JavaScript\r\nloadUser(store, userManager)\r\n  .then((user) => {\r\n    console.log('USER_FOUND', user);\r\n    if (user) {\r\n      store.dispatch({\r\n        type: 'redux-oidc/USER_FOUND',\r\n        payload: user,\r\n      });\r\n    }\r\n  }).catch((err) => {\r\n    console.log(err);\r\n  });\r\n```\r\n\r\n___\r\nOr maybe someone can suggest a better way to call actions right after `redux-oidc/USER_FOUND`?"},"comment":{"url":"https://api.github.com/repos/maxmantz/redux-oidc/issues/comments/373017258","html_url":"https://github.com/maxmantz/redux-oidc/issues/96#issuecomment-373017258","issue_url":"https://api.github.com/repos/maxmantz/redux-oidc/issues/96","id":373017258,"user":{"login":"bohdanbirdie","id":23266928,"avatar_url":"https://avatars3.githubusercontent.com/u/23266928?v=4","gravatar_id":"","url":"https://api.github.com/users/bohdanbirdie","html_url":"https://github.com/bohdanbirdie","followers_url":"https://api.github.com/users/bohdanbirdie/followers","following_url":"https://api.github.com/users/bohdanbirdie/following{/other_user}","gists_url":"https://api.github.com/users/bohdanbirdie/gists{/gist_id}","starred_url":"https://api.github.com/users/bohdanbirdie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bohdanbirdie/subscriptions","organizations_url":"https://api.github.com/users/bohdanbirdie/orgs","repos_url":"https://api.github.com/users/bohdanbirdie/repos","events_url":"https://api.github.com/users/bohdanbirdie/events{/privacy}","received_events_url":"https://api.github.com/users/bohdanbirdie/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T13:17:53Z","updated_at":"2018-03-14T13:17:53Z","author_association":"NONE","body":"@maxmantz I can provide more details, but not sure that will be able to reproduce it with an external app."}}
{"actor":{"display_login":"bohdanbirdie"}}