{"action":"created","issue":{"url":"https://api.github.com/repos/timscott/react-devise/issues/9","repository_url":"https://api.github.com/repos/timscott/react-devise","labels_url":"https://api.github.com/repos/timscott/react-devise/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/timscott/react-devise/issues/9/comments","events_url":"https://api.github.com/repos/timscott/react-devise/issues/9/events","html_url":"https://github.com/timscott/react-devise/issues/9","id":238587058,"number":9,"title":"Is there a way to get Auth information within App.jsx? ","user":{"login":"bhellman1","id":298219,"avatar_url":"https://avatars2.githubusercontent.com/u/298219?v=3","gravatar_id":"","url":"https://api.github.com/users/bhellman1","html_url":"https://github.com/bhellman1","followers_url":"https://api.github.com/users/bhellman1/followers","following_url":"https://api.github.com/users/bhellman1/following{/other_user}","gists_url":"https://api.github.com/users/bhellman1/gists{/gist_id}","starred_url":"https://api.github.com/users/bhellman1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhellman1/subscriptions","organizations_url":"https://api.github.com/users/bhellman1/orgs","repos_url":"https://api.github.com/users/bhellman1/repos","events_url":"https://api.github.com/users/bhellman1/events{/privacy}","received_events_url":"https://api.github.com/users/bhellman1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-26T15:49:12Z","updated_at":"2017-06-27T01:52:07Z","closed_at":"2017-06-27T01:52:07Z","body":"I'm looking to learn if the user is authenticated for routing purposes within App.jsx, something like:\r\n\r\n```\r\nconst isLoggedIn = () => {\r\n  console.log('FIGURE IT OUT HERE');\r\n  return true;\r\n};\r\nconst App = ({store}) => {\r\n\r\n  return (\r\n    <StyledComponentsThemeProvider theme={theme}>\r\n      <MuiThemeProvider muiTheme={getMuiTheme(theme)} store={store}>\r\n          <StoreProvider store={store}>\r\n            <ConnectedRouter history={history}>\r\n              <Switch>\r\n                  ....\r\n                <WithMainLayout exact path=\"/\" component={Home} render={() => (\r\n                  isLoggedIn() ? (\r\n                  <Redirect to=\"/dashboard\" />\r\n                  ) : (\r\n                  <WithMainLayout component={Home} />\r\n                  )\r\n                )}/>\r\n```\r\n\r\n\r\nThe idea with the above is to allow the app to know where `/` should take the user. Is this supported out of the box with react-devise? Thanks"},"comment":{"url":"https://api.github.com/repos/timscott/react-devise/issues/comments/311229962","html_url":"https://github.com/timscott/react-devise/issues/9#issuecomment-311229962","issue_url":"https://api.github.com/repos/timscott/react-devise/issues/9","id":311229962,"user":{"login":"bhellman1","id":298219,"avatar_url":"https://avatars2.githubusercontent.com/u/298219?v=3","gravatar_id":"","url":"https://api.github.com/users/bhellman1","html_url":"https://github.com/bhellman1","followers_url":"https://api.github.com/users/bhellman1/followers","following_url":"https://api.github.com/users/bhellman1/following{/other_user}","gists_url":"https://api.github.com/users/bhellman1/gists{/gist_id}","starred_url":"https://api.github.com/users/bhellman1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhellman1/subscriptions","organizations_url":"https://api.github.com/users/bhellman1/orgs","repos_url":"https://api.github.com/users/bhellman1/repos","events_url":"https://api.github.com/users/bhellman1/events{/privacy}","received_events_url":"https://api.github.com/users/bhellman1/received_events","type":"User","site_admin":false},"created_at":"2017-06-27T01:52:07Z","updated_at":"2017-06-27T01:52:07Z","body":"Good call re: handling in Home, that ended up being a lot cleaner. Thanks!"}}
{"actor":{"display_login":"bhellman1"}}