{"action":"created","issue":{"url":"https://api.github.com/repos/zeit/next.js/issues/148","repository_url":"https://api.github.com/repos/zeit/next.js","labels_url":"https://api.github.com/repos/zeit/next.js/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/zeit/next.js/issues/148/comments","events_url":"https://api.github.com/repos/zeit/next.js/issues/148/events","html_url":"https://github.com/zeit/next.js/issues/148","id":186067249,"number":148,"title":"How would I implement an authentication workflow?","user":{"login":"roderik","id":16780,"avatar_url":"https://avatars.githubusercontent.com/u/16780?v=3","gravatar_id":"","url":"https://api.github.com/users/roderik","html_url":"https://github.com/roderik","followers_url":"https://api.github.com/users/roderik/followers","following_url":"https://api.github.com/users/roderik/following{/other_user}","gists_url":"https://api.github.com/users/roderik/gists{/gist_id}","starred_url":"https://api.github.com/users/roderik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roderik/subscriptions","organizations_url":"https://api.github.com/users/roderik/orgs","repos_url":"https://api.github.com/users/roderik/repos","events_url":"https://api.github.com/users/roderik/events{/privacy}","received_events_url":"https://api.github.com/users/roderik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-29T08:37:40Z","updated_at":"2016-10-29T16:09:12Z","closed_at":null,"body":"I usually do a \"onEnter\" on React Router to check and redirect to a login page.\r\n\r\nRunning the check in getInitialProps? But that does not feel right..."},"comment":{"url":"https://api.github.com/repos/zeit/next.js/issues/comments/257100092","html_url":"https://github.com/zeit/next.js/issues/148#issuecomment-257100092","issue_url":"https://api.github.com/repos/zeit/next.js/issues/148","id":257100092,"user":{"login":"rauchg","id":13041,"avatar_url":"https://avatars.githubusercontent.com/u/13041?v=3","gravatar_id":"","url":"https://api.github.com/users/rauchg","html_url":"https://github.com/rauchg","followers_url":"https://api.github.com/users/rauchg/followers","following_url":"https://api.github.com/users/rauchg/following{/other_user}","gists_url":"https://api.github.com/users/rauchg/gists{/gist_id}","starred_url":"https://api.github.com/users/rauchg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rauchg/subscriptions","organizations_url":"https://api.github.com/users/rauchg/orgs","repos_url":"https://api.github.com/users/rauchg/repos","events_url":"https://api.github.com/users/rauchg/events{/privacy}","received_events_url":"https://api.github.com/users/rauchg/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T16:09:12Z","updated_at":"2016-10-29T16:09:12Z","body":"Also, to be perfectly clear, for most use cases you *don't need* #25. That'd be only necessary if you don't even want to ship the component _code_ (not _data_) according to authentication rules.\r\n\r\nWe perform authentication on `zeit.co` by re-using an `authenticate` method in `getInitialProps` across all the pages that require authentication."}}
{"actor":{"display_login":"rauchg"}}